document.write( "Question 225108: The hypotenuse of a right triangle is 5 inches. The lengths of the two legs are given by two consecutive integers. Find the lengths of the two legs. \n" ); document.write( "
Algebra.Com's Answer #168055 by Earlsdon(6294)\"\" \"About 
You can put this solution on YOUR website!
Let the two legs be x and x+1, then from the Pythagorean theorem, we have:
\n" ); document.write( "\"x%5E2%2B%28x%2B1%29%5E2+=+5%5E2\"
\n" ); document.write( "\"x%5E2%2B%28x%5E2%2B2x%2B1%29+=+25\"
\n" ); document.write( "\"2x%5E2%2B2x%2B1+=+25\" Subtract 25 from both sides.
\n" ); document.write( "\"2x%5E2%2B2x-24+=+0\" Factor out a 2.
\n" ); document.write( "\"2%28x%5E2%2Bx-12%29+=+0\" so...
\n" ); document.write( "\"x%5E2%2Bx-12+=+0\" Factor this quadratic equation.
\n" ); document.write( "\"%28x%2B4%29%28x-3%29+=+0\" and...
\n" ); document.write( "\"x+=+-4\" or \"x+=+3\" Discard the negative solution as lengths are positive.
\n" ); document.write( "\"x+=+3\" and \"x%2B1+=+4\"
\n" ); document.write( "The two legs are 3 inches and 4 inches.
\n" ); document.write( "
\n" );