document.write( "Question 881296: my friend has $828 to spend on a fence for her rectangular garden. She wants to use cedar fencing which costs $14/foot on one side, and cheaper metal fencing which costs $9 foot on the other three sides. \r
\n" ); document.write( "\n" ); document.write( "What are the dimensions of the garden with the largest area she can enclose.
\n" ); document.write( "length for cedar side
\n" ); document.write( "width for the other side
\n" ); document.write( "What is the largest area that can be enclosed?
\n" ); document.write( "

Algebra.Com's Answer #532102 by josmiceli(19441)\"\" \"About 
You can put this solution on YOUR website!
Let \"+L+\" = length of the garden in feet
\n" ); document.write( "Let \"+W+\" = width of the garden in feet
\n" ); document.write( "Let \"+A+\" = the area of the garden in ft2
\n" ); document.write( "---------------------
\n" ); document.write( "(1) \"+14W+%2B+9W+%2B+2%2A9%2AL+=+828+\"
\n" ); document.write( "(1) \"+23W+%2B+18L+=+828+\"
\n" ); document.write( "----------------------------
\n" ); document.write( "(2) \"+A+=+W%2AL+\"
\n" ); document.write( "from (1):
\n" ); document.write( "(1) \"+18L+=+828+-+23W+\"
\n" ); document.write( "(1) \"+L+=+46+-+%2823%2F18%29%2AW+\"
\n" ); document.write( "-------------------------------
\n" ); document.write( "By substitution:
\n" ); document.write( "(2) \"+A+=+W%2A%28+46+-+%2823%2F18%29%2AW+%29+\"
\n" ); document.write( "(2) \"+A+=+46W+-+%2823%2F18%29%2AW%5E2+\"
\n" ); document.write( "---------------------------------------
\n" ); document.write( "I can say then:
\n" ); document.write( "(2) \"+f%28W%29+=+-%2823%2F18%29%2AW%5E2+%2B+46W+\"
\n" ); document.write( "The maximum occurs at:
\n" ); document.write( "\"+W%5Bmax%5D+=+-b%2F%282a%29+\"
\n" ); document.write( "\"+-b%2F%282a%29+=+-46%2F%28-23%2F9%29+\"
\n" ); document.write( "\"+-b%2F%282a%29+=+18+\"
\n" ); document.write( "\"+W%5Bmax%5D+=+18+\"
\n" ); document.write( "Plug this back into (1)
\n" ); document.write( "(1) \"+23%2A18+%2B+18L+=+828+\"
\n" ); document.write( "(1) \"+414+%2B+18L+=+828+\"
\n" ); document.write( "(1) \"+18L+=+414+\"
\n" ); document.write( "(1) \"+L+=+23+\"
\n" ); document.write( "and
\n" ); document.write( "(2) \"+A+=+W%2AL+\"
\n" ); document.write( "(2) \"+A%5Bmax%5D+=+18%2A23+\"
\n" ); document.write( "(2) \"+A%5Bmax%5D+=+414+\"
\n" ); document.write( "------------------------------
\n" ); document.write( "The cedar side is 18 ft
\n" ); document.write( "The maximum area is 414 ft2
\n" ); document.write( "---------------------------------
\n" ); document.write( "Here's the plot:
\n" ); document.write( "\"+graph%28+400%2C+400%2C+-5%2C+50%2C+-40%2C+450%2C+-%2823%2F18%29%2Ax%5E2+%2B+46x+%29+\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );