CCGPS AG 5.7.1 Example 1

A farmer is building a rectangular pen using feet of electric fencing and the side of a barn. In addition to fencing, there will be a -foot gate also requiring the electric fencing on either side of the pen. The farmer wants to maximize the area of the pen. How long should he make each side of the fence in order to create the maximum area?