A ship travels 55 km on a bearing of 27 degree, then travels on a bearing of 117 degree for 140 km. Find the distance traveled from the starting point to the ending point.

******************************************

What I did is following:

sin27=55/hypotenuse

cos63=55/hypoenuse

*****>>>>these two give me 121 km

cos27=140/hypotenuse

Sin63=140/hypotenuse

*****>>>>>these two give me 157 km

But if I used the pythagorean thm, it gives me 150 km

I have seen similar problems they used sometimes, cos or sin or solve by pythagoran thm........It's confusing when to use what?