to the risk of being redundant
check the picture below.
so, notice, if we pick a point "a" on the x-axis, then the width of such rectangle is a+a, or 2a, and the length is 27-a²,
thus

if you run a first-derivative test on the region before -3, between -3 and 3, and after three, say for example do a check on f'(-4), and f'(0) and f'(4), you'll see the -3 is a minumum, whilst the +3 is a maximum.
therefore A(a) has an absolute maximum at 3, thus the largest area is then A(3), and surely you know what that is.