The triangles are similar triangles, so the proportion of the corresponding sides are the same.
Make a comparison.
[tex] \dfrac{\text{hypotenuse}}{\text{upright side}} = \dfrac{\text{hypotenuse}}{\text{upright side}} [/tex]
In this case, you can input the numbers as follows.
[tex] \dfrac{x}{2}= \dfrac{54}{12} [/tex]
Solve for x
Move 2 to the right side, and 2 will be a numerator
x = [tex]\dfrac{54(2)}{12} [/tex]
x = [tex] \dfrac{108}{12} [/tex]
x = 9
The value of x is 9, the answer is first option