gaokao 2018 Q14

gaokao · China · national-I-arts 5 marks Inequalities Linear Programming (Optimize Objective over Linear Constraints)
If $x , y$ satisfy the constraints $\left\{ \begin{array} { l } x - 2 y - 2 \leq 0 , \\ x - y + 1 \geq 0 , \\ y \leq 0 , \end{array} \right.$ then the maximum value of $z = 3 x + 2 y$ is \_\_\_\_
If $x , y$ satisfy the constraints $\left\{ \begin{array} { l } x - 2 y - 2 \leq 0 , \\ x - y + 1 \geq 0 , \\ y \leq 0 , \end{array} \right.$ then the maximum value of $z = 3 x + 2 y$ is \_\_\_\_