To solve for x, apply similar triangles.
So, draw the triangles separately to determine the corresponding sides. (See image below.)
Then, consider triangle 1 and triangle 2.
Express in ratio the shortest leg of these two triangles.
ratio1 : `x/5`
Also, express in ratio their corresponding hypotenuse .
Set the two ratios equal to each other.
And isolate x. To do so, multiply both sides by 5.
Hence, `x=4.62` .