The given problem can be exemplified in the following diagram:
The trajectory of the boat can be divided into two distinct right triangles, as shown in the figure. The difference between each of the sides of the right triangle form another right triangle that will allow us to determine the total distance using the Pythagorean theorem.
Solving the operation:
Now using the sine function:
Solving the operations:
This can be exemplified in the following diagram:
Using the Pythagorean theorem:
Replacing the values:
Solving the operations:
Taking square root to both sides:
Therefore, the total distance is 313 miles.