A plot of land needs fencing to house some hens.
An existing red wall is to be used for the enclosure. The fencing
will be attached at one end of the wall to the fence post marked
X, as shown in the
diagram:
If you have only $40$ metres of fencing available, determine the
dimensions of the enclosure which will provide the hens with the
maximum area.