use the ratio of a 30-60-90 triangle to solve for the variables.

Answer:
[tex]x=12,\\y=6\sqrt{3}[/tex]
Step-by-step explanation:
In all 30-60-90 triangles, the side lengths are in ratio [tex]x:x\sqrt{3}:2x[/tex], where [tex]x[/tex] is the side opposite to the 30 degree angle and [tex]2x[/tex] is the hypotenuse, or longest side, of the triangle.
Since there are 180 degrees in a triangle, the angle on top must be 30 degrees. Therefore, its opposite side is 6 and [tex]x=6[/tex] in the ratio [tex]x:x\sqrt{3}:2x[/tex].
Thus, we have:
[tex]y=\boxed{6\sqrt{3}},\\x=2\cdot 6=\boxed{12}[/tex]