8. (10%) Find the maximum and minimum value of the n-variable function a1 +og ....+on subject to the constraint by the method of Lagrange multipliers.