document.write( "Question 938606: One leg of a right triangle has length 7. The lengths of the other two sides are whole numbers. The length of the other leg is _____ and the length of the hypotenuse is ______. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Please help, I'm clueless.
\n" ); document.write( "

Algebra.Com's Answer #571811 by Edwin McCravy(20055)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "Let the other leg = y and the hypotenuse = z \r\n" );
document.write( "\r\n" );
document.write( "Then by the Pythagorean theorem:\r\n" );
document.write( "\r\n" );
document.write( "\"7%5E2%2By%5E2=z%5E2\"\r\n" );
document.write( "\r\n" );
document.write( "\"49%2By%5E2=z%5E2\"\r\n" );
document.write( "\r\n" );
document.write( "\"49=z%5E2-y%5E2\"\r\n" );
document.write( "\r\n" );
document.write( "\"49=%28z-y%29%28z%2By%29\"\r\n" );
document.write( "\r\n" );
document.write( "That expresses 49 as the product of two positive integers\r\n" );
document.write( "with z-y less than z+y \r\n" );
document.write( "\r\n" );
document.write( "49 can be written as the product of two positive integers\r\n" );
document.write( "in only 3 ways:\r\n" );
document.write( "\r\n" );
document.write( "\"49=1%2A49\", \"49=7%2A7\", \"49=49%2A1\"\r\n" );
document.write( "\r\n" );
document.write( "but only the first way has the first factor smaller than the second.\r\n" );
document.write( "\r\n" );
document.write( "So\r\n" );
document.write( "\r\n" );
document.write( "\"system%28z-y=1%2Cz%2By=49%29\"\r\n" );
document.write( "\r\n" );
document.write( "Solve that and get z=25, y= 24\r\n" );
document.write( "\r\n" );
document.write( "So the right triangle has legs 7, 24, and hypotenuse 25. \r\n" );
document.write( "\r\n" );
document.write( "Edwin
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );