Because this is a 30-60-90 triangle, you need these formulas:
Short leg= S (The short leg is always across from the 30)
Long leg= S√3 (The long leg is always across from the 60)
Hypotenuse= 2S. (The hypotenuse is always across from the 90)
So you know the short leg is 17. So S= 17.
Now you just plug in 17 for the other formulas.
Long leg (which is X)= 17√3
The hypotenuse (which is Y)= 17(2)= 34.
So X=17√3 and Y=34