From 2x + y = 80 you have y = 80-2x.
Then A = xy = x*(80-2x), and you need to find the maximum of this quadratic function.
The zeros are at x = 0 and x = = 40.
Hence, the maximum is achieved at x = = 20, exactly at the mid-point between the zeroes.
Then the maximum value of A is A = x*(80-2x) = 20*(80-2*20) = 20*40 = 800.