document.write( "Question 308957: One leg of a right triangle is 5 cm shorter than the other leg. The length of the hypotenuse is 25 cm. Find the length of the shorter leg. \n" ); document.write( "
Algebra.Com's Answer #220904 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
let one leg be x cm
\n" ); document.write( "the other leg will be x-5 cm\r
\n" ); document.write( "\n" ); document.write( "hyptenuse = 25 cm\r
\n" ); document.write( "\n" ); document.write( "Using pytagorean theorem\r
\n" ); document.write( "\n" ); document.write( "x^2 +(x-5)^2= 25^2
\n" ); document.write( "X^2 +x^2-10x+25= 625
\n" ); document.write( "2x^2 -10x -600=0
\n" ); document.write( "x^2-5x-300=0
\n" ); document.write( "x^2-20x+15x-300=0
\n" ); document.write( "x(x-20)+15(x-20)=0
\n" ); document.write( "(x-20(x+15)=0\r
\n" ); document.write( "\n" ); document.write( "x=20 which is positive
\n" ); document.write( "one leg is 20cm
\n" ); document.write( "the other leg = 15 cm
\n" ); document.write( "
\n" );