I'm confused with this problem:

What should be the shape of a rectangular field of a given area if it is enclosed by the least amount of fencing? Explain.

I know it's supposed to be rectangle, but I don't know how to create and equation that will explain it.

Someone pls. help.