
As can be seen from the figure above, only the 5Q charge is inside the spherical region.
The formula to calculate the flux through the surface is given by
ϕ=ϵ0qenc...(1)
From equation (1), the flux through the given surface can be calculated as follows:
ϕ=ϵ05Q