A farmer has 25 yards of fencing to make a pig pen. He is going to use the side of the barn as one of the sides of the fence, so he only needs to fence 3 sides. What should be the dimensions of the fence in order to maximize the area?