9. When x2 + y2 =z2 and x + 2z = 4, determine the maximum value of z.