6. Find the extrema of f(x,y,z)=x2+y2+z2 subject to the constraint x+y+z=9.