To solve this problem you must apply the proccedure shown below:
1. You must apply the Law of Cosines, as you can see in the figure attached. Then:
- The first ship travels at
in for two hours. Therefore, the side
is:

- The second ship travels at
for
. Therefore, the side
is:

- Now, you can calculate
:

The answer is:
