\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Let the dock be at D, the lighthouse at L, and the ship at S.\r\n" );
document.write( "\r\n" );
document.write( "A bearing of N12o30'W means this: \r\n" );
document.write( "\r\n" );
document.write( "Think of starting by putting your elbow at L. Point your arm North (up), \r\n" );
document.write( "\r\n" );
document.write( "then swing your arm toward the West (left) through an angle of 12o30'. \r\n" );
document.write( "\r\n" );
document.write( "Since 30' means half a degree, I will write the angle as 12.5o. \r\n" );
document.write( "\r\n" );
document.write( "To find ∠DLS we subtract 90o-12.5o = 77.5o.\r\n" );
document.write( "\r\n" );
document.write( "Since the ship travels at 13 mph, and travels 1 hour, the distance \r\n" );
document.write( "\r\n" );
document.write( "DS = 13 miles, the distance from the dock. \r\n" );
document.write( "\r\n" );
document.write( "We find ∠S by using the law of sines:\r\n" );
document.write( "\r\n" );
document.write( "

\r\n" );
document.write( "\r\n" );
document.write( "

\r\n" );
document.write( "\r\n" );
document.write( "



\r\n" );
document.write( "\r\n" );
document.write( "∠S = 64.3157657o\r\n" );
document.write( "\r\n" );
document.write( "Now we find ∠LDS by using the fact that the three angles of\r\n" );
document.write( "ΔDLS must have sum 180o.\r\n" );
document.write( "\r\n" );
document.write( "∠LDS = 180o - 64.3157657o - 77.5o = 38.1842343o\r\n" );
document.write( "\r\n" );
document.write( "To find the distance from the lighthouse to the ship, LS, we use the\r\n" );
document.write( "law of cosines:\r\n" );
document.write( "\r\n" );
document.write( "

\r\n" );
document.write( "\r\n" );
document.write( "

\r\n" );
document.write( "\r\n" );
document.write( "

miles.\r\n" );
document.write( "\r\n" );
document.write( "That's the first thing you were asked for.\r\n" );
document.write( "\r\n" );
document.write( "-------------\r\n" );
document.write( "\r\n" );
document.write( "To get the bearing angle from D, we subtract ∠LDS from 90o\r\n" );
document.write( "\r\n" );
document.write( "90o - 38.1842343o = 51.8157657o\r\n" );
document.write( "\r\n" );
document.write( "For the bearing from D, think of starting by putting your elbow at D. \r\n" );
document.write( "Point your arm North (up), then swing your arm toward the East (right) \r\n" );
document.write( "through an angle of 51.8157657o.\r\n" );
document.write( "\r\n" );
document.write( "Since the first bearing was given in degrees and minutes, we change\r\n" );
document.write( "the decimal part to minutes by multiplying by 60':\r\n" );
document.write( "\r\n" );
document.write( "(0.8157657)(60') = 48.945942' which we round to 49'\r\n" );
document.write( "\r\n" );
document.write( "So the bearing from D is N51o49'E.\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "