The diagram, which is not drawn accurately, shows a parallelogram inside a triangle.The marked lengths are equal.

What is the value of x?

triangle with parallelogram