2. If $x , y$ satisfy $\left\{ \begin{array} { l } x - y \leqslant 0 , \\ x + y \leqslant 1 , \\ x \geqslant 0 , \end{array} \right.$ then the maximum value of $z = x + 2 y$ is A. $0$ B. $1$ C. $\frac { 3 } { 2 }$ D. $2$
2. If $x , y$ satisfy $\left\{ \begin{array} { l } x - y \leqslant 0 , \\ x + y \leqslant 1 , \\ x \geqslant 0 , \end{array} \right.$ then the maximum value of $z = x + 2 y$ is\\
A. $0$\\
B. $1$\\
C. $\frac { 3 } { 2 }$\\
D. $2$