I got this assignment tomorrow and am having trouble.

"If you have 100 meters of fence, what are the dimensions of the maximum area you can enclose?"

"Also, if you want to enclose 100 square meters of land what is the maximum length of fence you can use?"