document.write( "Question 428650: one leg of a triangle is 7 ft longer than other leg. The length of the hypothenuse is 13ft. Find the lengths of the other two sides. \r
\n" ); document.write( "\n" ); document.write( "How would I set this up? I know its a² + b² = c² but I don't know which is which or how to go about setting it up to solve.
\n" ); document.write( "

Algebra.Com's Answer #297906 by Gogonati(855)\"\" \"About 
You can put this solution on YOUR website!
Let x ft the length of one leg. Then the other leg will be: x+7 ft. Since the hypotenuse is 13 ft, we write the Pythagorean theorem:\r
\n" ); document.write( "\n" ); document.write( "\"x%5E2%2B%28x%2B7%29%5E2=13%5E2\"\r
\n" ); document.write( "\n" ); document.write( "\"x%5E2%2Bx%5E2%2B14x%2B7%5E2=13%5E2\", Set the equation to zero.\r
\n" ); document.write( "\n" ); document.write( "\"2x%5E2%2B14x-120=0\", divide both sides by 2\r
\n" ); document.write( "\n" ); document.write( "\"x%5E2%2B7x-60=0\", factor the equation. \r
\n" ); document.write( "\n" ); document.write( " (x-5)(x+12)=0 => x-5=0 => x=5 and x+12=0 => x=-12 Since the length is always positive, the root -12 is rejected.\r
\n" ); document.write( "\n" ); document.write( "Answer: The short leg is 5 ft and the long one is 5+7=12 ft.
\n" ); document.write( "
\n" );