Why it behaves this way
Explanation
Optimization becomes easier to trust when one constrained picture stays visible. This bench keeps one rectangle under a fixed 24 meter perimeter, lets you move only the width, and forces the height, the area, and the objective graph to respond together so maxima and minima stay tied to a real tradeoff instead of a detached worksheet trick.
The important idea is that width and height are not free to change independently. Every extra meter of width costs one meter of height because the perimeter is fixed. The area curve peaks when that tradeoff has stopped helping, and the local slope of the objective graph is the cleanest way to see that turning point.