A farmer wants to build an enclosure to keep her sheep safe. The fencing comes in 1-meter segments. She has 300 segments available. What are the dimensions that maximize the area of her enclosure under the following constraints:

She wants a rectangular area enclosed.

She wants a rectangular area enclosed, and only needs to fence three sides, since the fourth side is bounded by a straight river.