I think you need to draw a graph to understand what is going on:
The base of the green rectangle is 2x, because
the base extends from -x to +x on the x axis,
and that is a distance of 2x.
The height of the green rectangle is y, so
The area of the green rectangle is
Area = base * height or
Since y and x are related by the equation of the parabola,
we can substitute for
Set
Use the positive value
Using the second derivative test,
, which is negative when ,
which proves that A is a maximum when .
Therefore, the base of the largest rectangle,
and its height is.
Edwin