document.write( "Question 122779: The sum of the lengths of one side of a right triangle and the hypotenuse is 20cm. The other leg is 5cm shorter than the hypotenuse. Find the length of each side.\r
\n" ); document.write( "\n" ); document.write( "x^2+(x-5)^2=20^2
\n" ); document.write( "x^2+x^2-25x+25=400
\n" ); document.write( "2x^2-25x-375=0
\n" ); document.write( "x^2-5x-178.50=0\r
\n" ); document.write( "\n" ); document.write( "I just want to double check my steps to make sure I did this right. Thanks is advance.
\n" ); document.write( "

Algebra.Com's Answer #90157 by bucky(2189)\"\" \"About 
You can put this solution on YOUR website!
The way I solved this problem was to start with three equations.
\n" ); document.write( ".
\n" ); document.write( "Start by letting x and y equal the two legs of the triangle and h equal the hypotenuse.
\n" ); document.write( ".
\n" ); document.write( "The first sentence in the problem says the sum of one side and the hypotenuse equals 20 cm.
\n" ); document.write( "In equation form this can be written as:
\n" ); document.write( ".
\n" ); document.write( "\"x+%2B+h+=+20\"
\n" ); document.write( ".
\n" ); document.write( "Solve this equation for x and you have:
\n" ); document.write( ".
\n" ); document.write( "\"x+=+20+-+h\"
\n" ); document.write( ".
\n" ); document.write( "The next sentence in the problem says the other leg of the triangle is 5 cm less than the
\n" ); document.write( "hypotenuse. In equation form this is:
\n" ); document.write( ".
\n" ); document.write( "\"y+=+h+-+5\"
\n" ); document.write( ".
\n" ); document.write( "The final equation in the series comes from the Pythagorean theorem which for this problem
\n" ); document.write( "says that the sum of the squares of the legs equals the square of the hypotenuse. In
\n" ); document.write( "this problem it is:
\n" ); document.write( ".
\n" ); document.write( "\"x%5E2+%2B+y%5E2+=+h%5E2\"
\n" ); document.write( ".
\n" ); document.write( "Substituting 20 - h for x and h - 5 for y results in:
\n" ); document.write( ".
\n" ); document.write( "\"%2820+-+h%29%5E2+%2B+%28h+-+5%29%5E2+=+h%5E2\"
\n" ); document.write( ".
\n" ); document.write( "Squaring out the two terms on the left side gives:
\n" ); document.write( ".
\n" ); document.write( "\"400+-+40h+%2B+h%5E2+%2B+h%5E2+-+10h+%2B+25+=+h%5E2\"
\n" ); document.write( ".
\n" ); document.write( "Combining the like terms on the left side results in:
\n" ); document.write( ".
\n" ); document.write( "\"2h%5E2+-+50h+%2B+425+=+h%5E2\"
\n" ); document.write( ".
\n" ); document.write( "Subtract h^2 from both sides and you get the standard quadratic form of:
\n" ); document.write( ".
\n" ); document.write( "\"h%5E2+-+50h+%2B+425+=+0\"
\n" ); document.write( ".
\n" ); document.write( "If you apply the quadratic formula to get the solutions to this problem, you start with:
\n" ); document.write( ".
\n" ); document.write( "\"h+=+%28-b+%2B-+sqrt%28+b%5E2-4%2Aa%2Ac+%29%29%2F%282%2Aa%29+\"
\n" ); document.write( ".
\n" ); document.write( "and substitute 1 for a, -50 for b, and 425 for c to get:
\n" ); document.write( ".
\n" ); document.write( "\"h+=+%28-%28-50%29+%2B-+sqrt%28+%28-50%29%5E2-4%2A1%2A425+%29%29%2F%282%2A1%29+\"
\n" ); document.write( ".
\n" ); document.write( "In the radical \"%28-50%29%5E2+-4%2A1%2A425+=+2500+-+1700+=+800\" and substituting this gives:
\n" ); document.write( ".\r
\n" ); document.write( "\n" ); document.write( "\"h+=+%28-%28-50%29+%2B-+sqrt%28+800%29%29%2F%282%2A1%29+\"
\n" ); document.write( ".
\n" ); document.write( "The -(-50) = +50. The square root of 800 = 28.28427125. And the denominator is just 2. These
\n" ); document.write( "simplifications result in:
\n" ); document.write( ".
\n" ); document.write( "\"h+=+%2850+%2B-+28.28427125%29%2F2\"
\n" ); document.write( ".
\n" ); document.write( "Dividing the two terms in the numerator by the denominator results in:
\n" ); document.write( ".
\n" ); document.write( "\"h+=+25+%2B-+14.14213562\"
\n" ); document.write( ".
\n" ); document.write( "This means that there are two possible answers for h. The first is 25 + 14.14213562
\n" ); document.write( "which is 39.14213562. However, this cannot be the answer because we know that x + h must
\n" ); document.write( "be 20. But if h is 39.14213562 then x has to be a negative number if the sum of x and h
\n" ); document.write( "is to be 20.
\n" ); document.write( ".
\n" ); document.write( "So the next trial is to assume the answer is h = 25 - 14.14213562 and this subtraction leads
\n" ); document.write( "to:
\n" ); document.write( ".
\n" ); document.write( "h = 10.85786438 cm
\n" ); document.write( ".
\n" ); document.write( "Then we can use the equation x + h = 20 to find x. Substitute 10.85786438 for h and x becomes
\n" ); document.write( "defined by the equation:
\n" ); document.write( ".
\n" ); document.write( "\"x+%2B+10.85786438+=+20\"
\n" ); document.write( ".
\n" ); document.write( "Subtract 10.85786438 from both sides of this equation and the result is:
\n" ); document.write( ".
\n" ); document.write( "\"x+=+20+-+10.85786438+=+9.14213562\"
\n" ); document.write( ".
\n" ); document.write( "So one leg is 9.14213562 cm.
\n" ); document.write( ".
\n" ); document.write( "The other leg of the triangle (side y) is 5 cm smaller than h and this is:
\n" ); document.write( ".
\n" ); document.write( "\"y+=+h+-+5+=+10.85786438+-+5+=+5.85786438\"
\n" ); document.write( ".
\n" ); document.write( "So the length of the final side is 5.85786438 cm.
\n" ); document.write( ".
\n" ); document.write( "In summary, the three sides are: hypotenuse = 10.85786438 cm, leg x = 9.14213562 cm, and
\n" ); document.write( "leg y = 5.85786438 cm.
\n" ); document.write( ".
\n" ); document.write( "If you check these values out you will find that they satisfy all three equations.
\n" ); document.write( "In other words:
\n" ); document.write( ".
\n" ); document.write( "x + h = 9.14213562 + 10.85786438 = 20
\n" ); document.write( ".
\n" ); document.write( "and:
\n" ); document.write( ".
\n" ); document.write( "y = h - 5
\n" ); document.write( ".
\n" ); document.write( "5.85786432 = 10.85786438 - 5
\n" ); document.write( ".
\n" ); document.write( "and
\n" ); document.write( ".
\n" ); document.write( "x^2 + y^2 = h^2
\n" ); document.write( ".
\n" ); document.write( "(9.14213562)^2 + (5.85786432)^2 = (10.85786438)^2
\n" ); document.write( ".
\n" ); document.write( "Hope this helps you to see how to set up and solve this problem.
\n" ); document.write( ".
\n" ); document.write( "
\n" ); document.write( "
\n" );