Since the acceleration is a constant negative, that means that when velocity, dA/dw=0, it is at an absolute maximum for A(w)...
dA/d2=0 only when 50=2w, w=25
So as the case with any rectangle, the perfect square will enclose the greatest area possible with respect to a given amount of material to enclose that area...
So the greatest area occurs when W=L=25 in this case: