document.write( "Question 163403: A rectangle has a diagonal of length 20 ft. and a perimeter or 56 ft. Find the dimensions of the rectangle. \n" ); document.write( "
Algebra.Com's Answer #120388 by gonzo(654)\"\" \"About 
You can put this solution on YOUR website!
diagonal 20 feet.
\n" ); document.write( "perimeter 56 feet.
\n" ); document.write( "-----
\n" ); document.write( "diagonal of the rectangle is the hypotenuse of the 2 triangles created by it.
\n" ); document.write( "-----
\n" ); document.write( "let x = length of the rectangle
\n" ); document.write( "let y = width of the rectangle.
\n" ); document.write( "x + y are also legs of the right triangles created.
\n" ); document.write( "-----
\n" ); document.write( "formula for perimeter of the rectangle is
\n" ); document.write( "2*x + 2*y = 56
\n" ); document.write( "-----
\n" ); document.write( "formula for legs of the right triangle is
\n" ); document.write( "x^2 + y^2 = 20^2
\n" ); document.write( "-----
\n" ); document.write( "since 2*x + 2*y = 56, then
\n" ); document.write( "2*y = 56 - 2*x
\n" ); document.write( "which becomes
\n" ); document.write( "y = 28 - x
\n" ); document.write( "-----
\n" ); document.write( "substituting for y in the second equation gets
\n" ); document.write( "x^2 + (28-x)^ = 20^2
\n" ); document.write( "which expands to become
\n" ); document.write( "x^2 + 784 - 56*x + x^2 = 400
\n" ); document.write( "subtracting 400 from both sides of the equation and combining like terms gets
\n" ); document.write( "2*x^2 - 56*x + 384 = 0
\n" ); document.write( "dividing both sides of the equation by 2 gets
\n" ); document.write( "x^2 - 28*x + 192 = 0
\n" ); document.write( "-----
\n" ); document.write( "solving this equation (i used the quadratic formula because i wasn't able to see the correct factors) yields
\n" ); document.write( "x = 16 or x = 12
\n" ); document.write( "-----
\n" ); document.write( "both values are good by substituting in the original equation.
\n" ); document.write( "-----
\n" ); document.write( "if x = 12, then
\n" ); document.write( "2*x + 2*y = 56 becomes 24+2*y=56 becomes 2*y = 32 becomes y = 16
\n" ); document.write( "-----
\n" ); document.write( "if x = 16, then
\n" ); document.write( "2*x + 2*y = 56 becomes 32+2*y=56 becomes 2*y = 24 becomes y = 12
\n" ); document.write( "----
\n" ); document.write( "if x = 12, y = 16
\n" ); document.write( "if x = 16, y = 12
\n" ); document.write( "-----
\n" ); document.write( "substituting either one in the equation for the legs of the triangle gets
\n" ); document.write( "x^2 + y^2 = 400 becomes (12)^2 + (16)^2 = 400 becomes 144 + 256 = 400 becomes 400 = 400.
\n" ); document.write( "-----
\n" ); document.write( "x = 12 and y = 16, or x = 16 and y = 12 works for both the perimeter and for the legs of the triangle so these values are good.
\n" ); document.write( "-----
\n" ); document.write( "answer is
\n" ); document.write( "x = 12 or 16
\n" ); document.write( "y = 16 or 12
\n" ); document.write( "-----
\n" ); document.write( "the rectangle is 12 by 16, or 16 by 12, whichever way you want to look at it.
\n" ); document.write( "-----
\n" ); document.write( "
\n" );