The motion of the boat is basically a uniform motion on both directions, north-south (NS) and east-west (EW), with two constant velocities:

and

.
From the law of motion on the EW direction we can find the total time of the motion:

since we know

, we find

and then, we can find how far the boat went on the NS direction during this time:
