The correct option is B 30 mC
Initially when switch is open 20 μF and 30 μF capacitors are in series.
Their equivalent capacitance, Ceq=20×3020+30
Ceq=20×3050=12 μF
Charge on capacitor 20 μF,Q=CeqV
⇒Q=12×10=120 μC
Now, when switch is closed 10 μF and 20 μF capacitors are parallel.
Their equivalent capacitance =20+10=30 μF
This 30 μF and another 30 μF are in series.
This equivalent, Ceq=302=15 μF
Now, charge Q′=15×10=150 μC
Initially charge on the upper plate of 10 μF and 20 μF capacitor was 120 μC, Now this charge has become 150 μC.
So, charge flows through the battery is 150−120=30 μC