You first try to find the missing angle on the smaller triangle which is 12 using the Pythagorean theorem(a^2+b^2=c^2)
With that knowledge you plug in 12 and 35 in the theorem which you get 144+1225 =sqrt1369. The squareroot of 1369 is 37 and that's your anwser.