The distribution of charges on two Gaussian surfaces A and B are shown below
Flux through a closed surface, φ=
q‌net ‌
ε0
q‌nct = net charge enclosed by the surface Here, Here, (q‌net )A= charge enclosed by surface A=q+3q−2q−5q=−3q And (q‌niet ‌)B=−q+3q+2q=4q So,