The electric flux entering in surface
ϕ1 = -400Nm2/C
Electric flux leaving out through surface
ϕ2 = 800Nm2/C
∴ Total flux linked with the closed surface
ϕ = ϕ1 + ϕ2 = -400 + 800 = 400Nm2/C
From Gauss’s theorem,
ϕE = \(\frac{1}{\varepsilon_{0}}\) Σq
Σq = ϕE × ε0
= 400 × 8.86 × 10-12
= 3.54 × 10-9 C
= 3.54 nC