If the boat moves this way, then the 10km and 7km lines, and the direct distance d form a right triangle. From here we can calculate d using the pythagorean theorem.
8.1m questions
10.7m answers