we are given that
two triangles are similar
so, the ratio of their sides must be same
we get

now, we can solve for x
step-1: Cross multiply both sides

step-2: Simplify left side

step-3: Subtract both sides by 2x


step-4: Divide both sides by 4

so,
............Answer