We are asked to find the value of x.
As you can see, the two sides are parallel and when these parallel sides intersect sides of overlapping triangles then the intercepted segments are proportional.
So, we can set up the following proportion.
Let us solve the above equation for x.
Therefore, the value of x is 6