document.write( "Question 1198424: Cynthia Besch wants to buy a rug for a room that is 22 ft wide and 30 ft long. She wants to leave a uniform strip of floor around the rug. She can afford to buy 560 square feet of carpeting. What dimensions should the rug​ have? \n" ); document.write( "
Algebra.Com's Answer #832010 by math_tutor2020(3816)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: 20 ft by 28 ft\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "=========================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Explanation:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = width of the uniform strip (i.e. the gap between the rug edge and the wall)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Diagram
\n" ); document.write( "
\n" ); document.write( "The larger outer rectangle is 22 by 30
\n" ); document.write( "The smaller inner rectangle inside is (22-2x) by (30-2x)
\n" ); document.write( "For each inner dimension, we're subtracting two copies of x from the outer dimension.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The smaller rectangle area is 560 sq ft which is the amount of carpeting she can afford.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "length*width = area
\n" ); document.write( "(22-2x)*(30-2x) = 560
\n" ); document.write( "22*(30-2x) - 2x*(30-2x) = 560
\n" ); document.write( "660-44x - 60x + 4x^2 = 560
\n" ); document.write( "4x^2 - 104x + 660 = 560
\n" ); document.write( "4x^2 - 104x + 660-560 = 0
\n" ); document.write( "4x^2 - 104x + 100 = 0\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Compare this to ax^2+bx+c = 0
\n" ); document.write( "and we see that:
\n" ); document.write( "a = 4
\n" ); document.write( "b = -104
\n" ); document.write( "c = 100\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug those values into the quadratic formula
\n" ); document.write( "\"x+=+%28-b%2B-sqrt%28b%5E2-4ac%29%29%2F%282a%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28-%28-104%29%2B-sqrt%28%28-104%29%5E2-4%284%29%28100%29%29%29%2F%282%284%29%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28104%2B-sqrt%2810816-1600%29%29%2F%288%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28104%2B-sqrt%289216%29%29%2F%288%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28104%2B-++96%29%2F%288%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28104%2B96%29%2F%288%29\" or \"x+=+%28104-96%29%2F%288%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+%28200%29%2F%288%29\" or \"x+=+%288%29%2F%288%29\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\"x+=+25\" or \"x+=+1\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Those are the potential gap widths from the edge of the carpet to the wall.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We need to check each to see if they would be valid.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If x = 25, then
\n" ); document.write( "22-2x = 22-2*25 = -28
\n" ); document.write( "which isn't valid. A negative length doesn't make sense.
\n" ); document.write( "Therefore we ignore x = 25. It's not a valid solution.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If x = 1, then
\n" ); document.write( "22-2x = 22-2*1 = 20
\n" ); document.write( "30-2x = 30-2*1 = 28
\n" ); document.write( "Both results are positive, so x = 1 is valid.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The carpet has dimensions of 20 ft by 28 ft
\n" ); document.write( "Check: 20*28 = 560 sq ft
\n" ); document.write( "The answers are confirmed.
\n" ); document.write( "
\n" ); document.write( "
\n" );