from your explanation I found you could just use the pythagoras theorem with 55 and 140 as the shorter sides as the turn of the ship was exactly 90 degrees, therefore

distance travelled

The 157 could've resulted in rounding error introduced from using the trig functions.