document.write( "Question 162658: The flower garden has the shape of a right triangle. 20ft of a perennial border forms the hypotenuse of the triangle, and one leg is 4ft longer than the other leg.Find the lengths of the legs. \n" ); document.write( "
Algebra.Com's Answer #119877 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let the length of the hypotenuse = \"c\" ft
\n" ); document.write( "Let the length of the shorter side = \"b\" ft
\n" ); document.write( "Let the length of the longer side = \"a\" ft
\n" ); document.write( "From the Pythagorean theorem,
\n" ); document.write( "\"c%5E2+=+a%5E2+%2B+b%5E2\"
\n" ); document.write( "\"c+=+20\" ft
\n" ); document.write( "\"a+=+b+%2B+4\"ft
\n" ); document.write( "\"20%5E2+=+%28b+%2B+4%29%5E2+%2B+b%5E2\"
\n" ); document.write( "\"400+=+b%5E2+%2B+8b+%2B+16+%2B+b%5E2\"
\n" ); document.write( "\"2b%5E2+%2B+8b+-+384+=+0\"
\n" ); document.write( "\"b%5E2+%2B+4b+-+192+=+0\"
\n" ); document.write( "Complete the square by taking 1/2 of the coefficient of
\n" ); document.write( "b, square it, add it to both sides. First add \"192\" to
\n" ); document.write( "both sides
\n" ); document.write( "\"b%5E2+%2B+4b+=+192\"
\n" ); document.write( "\"b%5E2+%2B+4b+%2B+%284%2F2%29%5E2+=+192+%2B+%284%2F2%29%5E2\"
\n" ); document.write( "\"b%5E2+%2B+4b+%2B+4+=+192+%2B+4\"
\n" ); document.write( "\"%28b+%2B+2%29%5E2+=+196\"
\n" ); document.write( "Take the square root of both sides (there is a (-) square root also,
\n" ); document.write( "but I can ignore it)
\n" ); document.write( "\"b+%2B+2+=+14\"
\n" ); document.write( "\"b+=+12\"
\n" ); document.write( "\"a+=+b+%2B+4\"
\n" ); document.write( "\"a+=+16\"
\n" ); document.write( "The lengths of the legs are 12 ft and 16 ft
\n" ); document.write( "check answer:
\n" ); document.write( "\"c%5E2+=+a%5E2+%2B+b%5E2\"
\n" ); document.write( "\"20%5E2+=+16%5E2+%2B+12%5E2\"
\n" ); document.write( "\"400+=+256+%2B+144\"
\n" ); document.write( "\"400+=+400\"
\n" ); document.write( "OK
\n" ); document.write( "
\n" ); document.write( "
\n" );