Notice that the given right triangle has a marked angle measuring 30^(∘). Therefore, by the Triangle Angle Sum Theorem the measure of the third angle must be 60^(∘).
We found that the measure of the longer leg is 6. Also, in a 30^(∘)-60^(∘)-90^(∘) triangle, the hypotenuse is 2 times the length of the shorter leg.
x= 2 * 2sqrt(3) ⇔ x=4sqrt(3)