Plan to enclose a rectangular garden that includes a fence dividing the interior into two separate pieces. The fencing on the outside will cost $5 per linear foot, but the fencing inside will only cost $2 per linear foot. I have budgeted a total of $300 for the fencing. Find the dimensions of the largest garden I can enclose.
$300=5(2x+2y)+2y$
$300=10x+12y$
$y=\frac{300-10x}{12}$
How do they get
$A(x)=\frac{x(300-10x)}{12}$
$A(x)=\frac{300x-10x^2}{12}$
They ask to find the critical numbers and to test the critical numbers