The sphere of radius 4a encloses only the negative charge Q1 = -4Q. The positive charge Q2 = +2Q being located at a distance of 5a from the origin is outside the sphere. Only a part of the electric flux lines originating at Q2 enters the sphere and exits entirely at other points. Hence, the electric flux through the sphere is only due to Q1.
Therefore, the net electric flux through the sphere = \(\frac{Q_{1}}{\varepsilon_{0}}=\frac{-4 Q}{\varepsilon_{0}}\) . The minus sign shows that the flux is directed into the sphere, but not radially since the sphere is not centred on Q1.