document.write( "Question 1037299: I would like to fence in a rectangular area in my back yard for my dog. I would like to use chain link fencing, which is only $7 per lineal foot, for both sides and the front. The guy that lives behind me has a dog, and if the two of them see each other, they will be barking all of the time. So, I will need to use solid redwood fencing at $28 per lineal foot to do the back wall.
\n" ); document.write( "I would like the area to be 300 square feet, but do it at a minimum cost. How much of the redwood fencing will I need to buy?
\n" ); document.write( "

Algebra.Com's Answer #652011 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
x=sides
\n" ); document.write( "y=front and back
\n" ); document.write( "xy=300, area
\n" ); document.write( "Cost=7(2x+y)+28y=14x+35y
\n" ); document.write( "y=300/x
\n" ); document.write( "cost is 14x+10500/x
\n" ); document.write( "Take the derivative and set it equal to zero.
\n" ); document.write( "14-10500/x^2=0
\n" ); document.write( "14=(10500/x^2)
\n" ); document.write( "14x^2=10500
\n" ); document.write( "x^2=750
\n" ); document.write( "x=27.38 feet.
\n" ); document.write( "y, the amount of redwood fencing, is 10.96 feet. Total cost is 65.72@$7=$460.04 plus 10.96*28=306.88=$766.92
\n" ); document.write( "check with 25 and 12 for area of 300
\n" ); document.write( "62 feet of chain ($434)
\n" ); document.write( "12 feet of redwood (336), total is $770.
\n" ); document.write( "30 and 10--90*$7=$630 and 10*$28=$280, for total of $910.
\n" ); document.write( "\"graph%28300%2C200%2C-10%2C40%2C-100%2C2000%2C14x%2B%2810500%2Fx%29%29\"
\n" ); document.write( "
\n" );