Introduce slack variables as necessary, then write the initial simplex tableau for each linear programming problem.
Find $x_{1} \geq 0$ and $x_{2} \geq 0$ such that
$$
\begin{aligned} 4 x_{1}+2 x_{2} & \leq 5 \\ x_{1}+2 x_{2} & \leq 4 \end{aligned}
$$
and $z=7 x_{1}+x_{2}$ is maximized.