This question checks the differential form of Gauss's law, linking the divergence of the electric field directly to the volume charge density: \(\rho_v = \epsilon_0(\nabla\cdot\vec{E})\).
Since every component of \(\vec{E}\) is a simple linear function of \(x\), \(y\), and \(z\), we can shortcut the differentiation: the partial derivative of a linear term with respect to its own matching variable is just the coefficient of that variable, and every other term that does not contain that variable drops to zero.
Adding these three coefficients gives the divergence directly, without writing out the full derivative each time:
$$ \nabla\cdot\vec{E} = 2+4+2 = 8 $$So the charge density is
$$ \rho_v = \epsilon_0\times8 = 8\epsilon_0\ \text{C/m}^3 $$Let's summarize: