A boat traveled north for 28 miles, then turned x° southwest and traveled for 25 miles before stopping. When it stopped, the boat was 18 miles from its starting point.

A triangle shows the course of a boat. Starting at the dock, it travels 18 miles to the left, then 25 miles up and to the right, and then 28 miles down and back to the dock. The angle between 25 miles and 28 miles is x degrees.

Law of cosines:

By how many degrees did the direction of the boat change when it made its first turn? Round to the nearest degree.
30 degrees
39 degrees
46 degrees