A farmer has 180 feet of fence and wants a pen to adjoin to the whole side of the 120 foot barn as shown.

What should the dimentions be for maximum area. Note that in this case

Write the equation for perimeter of the three sided rectangle. Write the equation for area in terms of l, w.

You should have enough to solve. I will be happy to critique your work.