You can use Pythagoras’ theorem here. The distance you’re finding, c, will be the hypotenuse.
You can assume that the route travelled so far creates a right angle, because the boat goes ‘left’ and then straight ‘down’.
Also this just seems to be a question that you need to use the theorem to solve, yknow? I hope this helped!