6. (15%) Use the method of Lagrange multipliers to find the maximum and minimum values of x2 + y2 subject to the constraint x2 - 2x + y2 - 4y = 0.