The unit vector normal to surface 1 is in –x
direction while  the unit  vector normal to surface 2
is in the +x direction Therefore, flux  E DS through
both the surfaces are equal and add up Therefore
the net flux through the Gaussian surface is 2 EA