document.write( "Question 320886: One leg of a right triangle is 7 cm less than the length of the other leg. The length of the hypotenuse is 13 cm. Find the lengths of the legs. \n" ); document.write( "
Algebra.Com's Answer #229804 by mananth(16946)\"\" \"About 
You can put this solution on YOUR website!
let one leg be x
\n" ); document.write( "the other leg will be x-7
\n" ); document.write( "..
\n" ); document.write( "right angled triangle
\n" ); document.write( "one side ^2 + second side ^2 = hypotenuse ^2
\n" ); document.write( "x^2+(x-7)^2=hyp^2
\n" ); document.write( "x^2+x^2-14x+49=169
\n" ); document.write( "2x^2-14x+120=0
\n" ); document.write( "x^2-7x+60=0
\n" ); document.write( "x^2-12x+5x+60=0
\n" ); document.write( "x(x-12)+5(x-12)=0
\n" ); document.write( "(x-12)(x+5)=0
\n" ); document.write( "x=12 OR -5.
\n" ); document.write( "Ignore the negative value
\n" ); document.write( "one leg = 12 cm\r
\n" ); document.write( "\n" ); document.write( "the other leg = 12-7=5 cm
\n" ); document.write( "
\n" );