document.write( "Question 1182989: The hypotenuse of right triangle is 15mc. One of the legs is 3cm more than the other. Find the length of the two legs.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #813118 by amarjeeth123(569)\"\" \"About 
You can put this solution on YOUR website!
Let the two legs be x and x+3.
\n" ); document.write( "The hypotenuse of right triangle is 15cm.
\n" ); document.write( "For a right angled triangle the square of the hypotenuse is equal to the sum of squares of the other two sides.
\n" ); document.write( "Plugging in the values we get, x^2+(x+3)^2=15^2
\n" ); document.write( "Simplifying we get,
\n" ); document.write( "2x^2+6x+9=225
\n" ); document.write( "2x^2+6x+9-225=0
\n" ); document.write( "2x^2+6x-216=0
\n" ); document.write( "x^2+3x-108=0
\n" ); document.write( "x^2+12x-9x-108=0
\n" ); document.write( "x(x+12)-9(x+12)=0
\n" ); document.write( "(x-9)(x+12)=0
\n" ); document.write( "x-9=0 or x+12=0
\n" ); document.write( "x=9 or x=-12
\n" ); document.write( "x=9 is the correct answer as x cannot be negative.
\n" ); document.write( "The two legs of the triangle are 9 and 12 respectively.
\n" ); document.write( "
\n" );