Let the costs of shoes, t-shirt, and glasses be represented by s, t, g, respectively. The problem statement tells us these relationships:
... s = 2t
... g = t/2
... s +t +g +9 = 65 . . . . . the $9 cost of the hat is added into the total
_____
Solution
Substituting for s and g, we have ...
... 2t +t +t/2 +9 = 65
... (3 1/2)t = 56 . . . . . collect terms
... t = 56/3.5 = 16 . . . . divide by the coefficient of t
The shoes are 2t, so $32.
The t-shirt is t, so $16.
The sunglasses are t/2, so $8.
The hat is $9.