A farmer decides to enclose a rectangular garden, using the barn as one side of the rectangle. What is the maximum area that the farmer can enclose with 40 feet of fence? what dimensions yield that maximum area?