Finding the extremum of function z = XY (a-x-y) I'm going over the exam,

Finding the extremum of function z = XY (a-x-y) I'm going over the exam,

First, Z '(x) = x * (a-x-2 * y) = 0
z'(y)=y(a-y-2*x)=0
Four groups of solutions (0,0) (a, 0) (0, a) (A / 3, a / 3) are obtained
1. (0,0), f '', XX = 0, f '', xy = a, f '', YY = 0, AC-B ^ 2