Ms. Brown has 200 m of fencing with which she intends to construct a rectangular enclosure along a river where no fencing is needed. She plans to divide the enclosure into two parts (as shown) to separate her sheep from her goats.

What would be the dimensions of the enclosure if its area is to be a maximum? Show a complete algebraic solution.

I'm lost. =|