You can put this solution on YOUR website! a 30-60-90 degree triangle has special known proportions
the shorter leg will be x/2 if the hypotenuse is x
and the longer leg will be sqrt(3)*x/2
the hypotenuse is twice the shorter leg.
and the longer leg is sqrt(3) times the shorter leg