is the maximum area of a rectangle always a square?
The area of a rectangle is the length times the width and with the given amount of fencing you have you get the maximum area if the length and width are equal, that is the shape of the garden is a square.