x = 6
Step-by-step explanation:
It's based on similarity of triangles
DEF ~ △XYZ

The sides should be taken in order, like the triangles start with DE and XY so, we'll proportionate DE and XY and then the next two sides and so on.
I'm using
to get the value of x.
[You can use any two fractions out of the three given above. ]







Hence, the value of x is 6.