document.write( "Question 257668: The hypotenuse of a right triangle is 9cm longer than 1 leg and 2cm longer than the other leg. What are the dimensions of the triangle. The answer is 8,15 and 17 - but I can't figure out how they did it. Can you show me? \n" ); document.write( "
Algebra.Com's Answer #189561 by richwmiller(17219)\"\" \"About 
You can put this solution on YOUR website!
a^2+b^2=c^2
\n" ); document.write( "a+9=c
\n" ); document.write( "b+2=c
\n" ); document.write( "that works out to
\n" ); document.write( "a=8
\n" ); document.write( "b=15
\n" ); document.write( "c=17\r
\n" ); document.write( "\n" ); document.write( "a=c-9
\n" ); document.write( "b=c-2
\n" ); document.write( "(c-9)^2+(c-2)^2=c^2\r
\n" ); document.write( "\n" ); document.write( "which yields
\n" ); document.write( " 2c^2-22 c+85 = c^2
\n" ); document.write( "which gives 5 and 17 for c
\n" ); document.write( "solving for a and b
\n" ); document.write( "when c=5
\n" ); document.write( "a=c-9
\n" ); document.write( "b=c-2\r
\n" ); document.write( "\n" ); document.write( "a=5-9=-4
\n" ); document.write( "so 5 can't be solution since we can't have a negative number for a side of a triangle.
\n" ); document.write( "when c=17
\n" ); document.write( "a=17-9=8
\n" ); document.write( "b=17-2=15
\n" ); document.write( "
\n" ); document.write( "
\n" );