You can use a tangent:

We have opposite = 17 and adjacent = x.

substitute:
cross multiply
multiply both sides by √3

divide both sides by 3

Use the Pythagorean theorem:

-------------------------------------------------------------------------------------------------
Other method.
triangle.
The sides are in the ratio 
Therefore

H H H
H H T
H T H
T H H
T T T 1
T T H 2
T H T 3
H T T 4
----------
the answer is the second one. 24