Maximum value of function z=2x+y: consider z as the y intercept of a straight line y=-2x+z, and the slope of this straight line is -2.
Therefore, in the straight line with the slope of over-constrained area of -2, the maximum intercept is Z, and when this straight line passes through (3,0), it is 6, and the correct answer is C.