3. (10 pts) Suppose that x +y +z+w = 3 and x2+y2 +z2+w2 = 8. Find the maximum and minimum values of w.