document.write( "Question 329049: Two ships leave one port, one sailing east and the other south. Some time later, they are 17 mies apart, with the eastbound ship 7 miles farther from the port than the southbound ship. How far is each from port? \n" ); document.write( "
Algebra.Com's Answer #235753 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
let southbound ship be at x miles from port
\n" ); document.write( "the other will be (x+7) miles from the port east.
\n" ); document.write( "they form a right triangle
\n" ); document.write( "x^2+(x+7)^2=17^2
\n" ); document.write( "x^2+x^2+14x+49=289
\n" ); document.write( "2x^2+14x=289-49
\n" ); document.write( "2x^2+14x=240
\n" ); document.write( "divide by 2
\n" ); document.write( "x^2+7x=120
\n" ); document.write( "x^2+7x-120=0
\n" ); document.write( "x^2+15x-8x-120=0
\n" ); document.write( "x(x+15)-8(x+15)=0
\n" ); document.write( "(x+15)(x-8)=0
\n" ); document.write( "x= -15 or x = 8 ignore negative value.
\n" ); document.write( "x=8 miles south bound ship from port
\n" ); document.write( "x+7 = 8+7 =15 miles distance of the east bound ship from port
\n" ); document.write( "
\n" );