A 30-60-90 triangle is half an equlateral triangle (refer to the image below).
If we call the length of the side
, we can see that it is exactly half of the side of the equilateral triangle. So, we have

Moreover, we can find the height
using the pythagorean theorem, having
.
Now, you know the longer leg to be 6. The longer leg is the height, so you have

So, the hypotenuse is twice that value:
