document.write( "Question 534861: One leg of right triangle is 9 inches shorter than the other leg. The hypotenuse is 45 inches. What is the length of all sides? \n" ); document.write( "
Algebra.Com's Answer #351664 by nerdybill(7384)\"\" \"About 
You can put this solution on YOUR website!
One leg of right triangle is 9 inches shorter than the other leg. The hypotenuse is 45 inches. What is the length of all sides?
\n" ); document.write( ".
\n" ); document.write( "Let x = length of \"other leg\"
\n" ); document.write( "then
\n" ); document.write( "x-9 = 2nd leg
\n" ); document.write( ".
\n" ); document.write( "applying Pythagorean theorem:
\n" ); document.write( "x^2 + (x-9)^2 = 45^2
\n" ); document.write( "x^2 + (x-9)(x-9) = 45^2
\n" ); document.write( "x^2 + x^2-18x+81 = 2025
\n" ); document.write( "2x^2-18x+81 = 2025
\n" ); document.write( "2x^2-18x-1944 = 0
\n" ); document.write( "x^2-9x-972 = 0
\n" ); document.write( "(X+27)(x-36) = 0
\n" ); document.write( "x = {-27, 36}
\n" ); document.write( "throw out the negative answer leaving:
\n" ); document.write( "x = 36 inches
\n" ); document.write( ".
\n" ); document.write( "Answer: the three sides are:
\n" ); document.write( "36, 27, and 45 inches\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );