A man wants to build 2 rectangular pens against a wall of his house. He has 240 ft of fencing material. If he wants to maximize the total area of the pens, what dimensions would he use?

the house is a rectangle, and it has a line across from it in the middle.

divide the fencing equally among the lengths and widths. The garden of size

120 by 40 will give the maximum area
That is, two gardens of size 60 by 40

assuming the two gardens share a common border, so there are only three sides of length 40.