Fence it

If you have only 40 metres of fencing available, what is the maximum area of land you can fence off?

Problem

Fence It printable sheet



Imagine you had $40$ one-metre sections of fencing.

 

Image
A rectangular area of land, which would have to be enclosed fully by fences.



What is the largest rectangular area of land you could fence off?

Now imagine you could build your fence up against a wall, so you only need to use the fence for three sides of the enclosure:

 

Image
A rectangular area of land with a wall on one edge, so that only the remaining three sides require fencing.



What is the largest area you can fence off now?

Now imagine you can attach the fence to the wall shown below, at the point marked X.

 

Image
A wall which is 8m from left to right, then goes 10m forward, then continues in the rightwards. The area that needs to be enclosed is above this wall, starting at the leftmost point of the wall.



What is the largest area you can fence off now?

Extension

Could you enclose even greater areas if you had $40$m of flexible wire fencing that could fence off curves as well as straight lines?