Find the maximum and minimum values of the function subject to the constraints and . Maximum value is . Minimum value is .

You can earn partial credit on this problem.