Let the dock be at D, the lighthouse at L, and the ship at S.
A bearing of N12o30'W means this:
Think of starting by putting your elbow at L. Point your arm North (up),
then swing your arm toward the West (left) through an angle of 12o30'.
Since 30' means half a degree, I will write the angle as 12.5o.
To find ∠DLS we subtract 90o-12.5o = 77.5o.
Since the ship travels at 13 mph, and travels 1 hour, the distance
DS = 13 miles, the distance from the dock.
We find ∠S by using the law of sines:
∠S = 64.3157657o
Now we find ∠LDS by using the fact that the three angles of
ΔDLS must have sum 180o.
∠LDS = 180o - 64.3157657o - 77.5o = 38.1842343o
To find the distance from the lighthouse to the ship, LS, we use the
law of cosines:
miles.
That's the first thing you were asked for.
-------------
To get the bearing angle from D, we subtract ∠LDS from 90o
90o - 38.1842343o = 51.8157657o
For the bearing from D, think of starting by putting your elbow at D.
Point your arm North (up), then swing your arm toward the East (right)
through an angle of 51.8157657o.
Since the first bearing was given in degrees and minutes, we change
the decimal part to minutes by multiplying by 60':
(0.8157657)(60') = 48.945942' which we round to 49'
So the bearing from D is N51o49'E.
Edwin