when two triangles are similar it means that both of them share a relation between their sides, and it must be fulfilled on all of its sides.
In order to find x, we need to find first the relationship with a pair of sides that is complete.
We can use sides AB and (AB)'
Then,

then use this proportion to find x

solve the resulting equation for x

the missing side is equal to 40.