document.write( "Question 1136456: You bike 35 miles from A to B (due south) and then walk 12 miles from B to C at a bearing of N 35 E. To go back to A (from C) you catch a ride and your bearing is N 40 W. what is the total distance you traveled (bike + walk + ride).
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #754321 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
You bike 35 miles from A to B (due south) and then walk 12 miles from B to C at a bearing of N 35 E.
\n" ); document.write( " To go back to A (from C) you catch a ride and your bearing is N 40 W.
\n" ); document.write( " what is the total distance you traveled (bike + walk + ride).
\n" ); document.write( ":
\n" ); document.write( "Draw this out and we have, (do we really need to know the bearing of C to A?)
\n" ); document.write( "a = 12 mi
\n" ); document.write( "B = 35 degrees
\n" ); document.write( "b = dist from C to A, riding in the car
\n" ); document.write( "c = 35 mi
\n" ); document.write( ":
\n" ); document.write( "Use the law of cosines
\n" ); document.write( "b^2 = a^2 + c^2 - 2(ac)*cos(B)
\n" ); document.write( "b^2 = 12^2 + 35^2 - 2(12*35)*cos(35)
\n" ); document.write( "b^2 = 144 + 1225 -2(420)*.819
\n" ); document.write( "b^2 = 1369 - 688.09
\n" ); document.write( "b^2 = 680.91
\n" ); document.write( "b = \"sqrt%28680.91%29\"
\n" ); document.write( "b = 26.09 mi from C to A, riding
\n" ); document.write( ":
\n" ); document.write( "Total dist traveled 35 + 12 + 26.09 = 73.09 mi
\n" ); document.write( "
\n" ); document.write( "
\n" );