document.write( "Question 501665: please help me about this problem : one leg of a right triangle is 1 cm longer than the other leg, and the hypotenuse is 2 cm longer than the shorter leg. Find the lengths of the three sides of the triangle.I think the legs are 3 and 4 cm and the hypotenuse is 5 cm. but iam not sure about it, i need a solution and some explanation for this, i will also report this tomorrow on our class. please help me. thank you. \n" ); document.write( "
Algebra.Com's Answer #338604 by geetha_rama(94)\"\" \"About 
You can put this solution on YOUR website!
Yes you are correct.
\n" ); document.write( "Here's explanation:
\n" ); document.write( "Let X be the length of shorter leg
\n" ); document.write( " Y be the length of longer leg
\n" ); document.write( " Z be the length of hypotensue.\r
\n" ); document.write( "\n" ); document.write( "From the problem , we have
\n" ); document.write( " Y = X + 1 ( longer leg is 1cm more than shorter leg)
\n" ); document.write( " Z = X+ 2 (hypotenuse is 2cm longer than the shorter leg)\r
\n" ); document.write( "\n" ); document.write( "We know that
\n" ); document.write( " X^2 + Y^2 = Z^2\r
\n" ); document.write( "\n" ); document.write( "Substituting values for Y and Z,
\n" ); document.write( "X^2 + (X+1)^2 = (X+2)^2
\n" ); document.write( "X^2 + X^2 + 2*X + 1 = X^2 + 4*X + 4
\n" ); document.write( "X^2 -2*X -3 = 0
\n" ); document.write( "X^2 -3X + X - 3 = 0
\n" ); document.write( "X(X-3) + 1(X-3)= =
\n" ); document.write( "(X-3)(X+1) = 0
\n" ); document.write( "X = 3, -1\r
\n" ); document.write( "\n" ); document.write( "Length should be positive.
\n" ); document.write( "Hence Shorter leg X = 3cm, Longer leg Y = 4cm and Hypotenuse Z = 5 cm
\n" ); document.write( "
\n" );