document.write( "Question 268680: One leg of a right triangle is 6 cm shorter than the other leg. The length of the hypotenuse is 30 cm. Find the length of the longer leg. \n" ); document.write( "
Algebra.Com's Answer #196873 by palanisamy(496)\"\" \"About 
You can put this solution on YOUR website!
Let the length of the longer leg = x
\n" ); document.write( "Then, x^2+(x-6)^2=30^2
\n" ); document.write( " x^2+x^2-12x+36-900=0
\n" ); document.write( "2x^2-12x-864=0
\n" ); document.write( "x^2-6x-432=0
\n" ); document.write( "(x+18)(x-24) =0
\n" ); document.write( "x = -18 or x=24
\n" ); document.write( "x cannot be negative
\n" ); document.write( "so x=24
\n" ); document.write( "
\n" );