Since the switch is opened for a long time, the capacitor is in series.
∴
When the switch is closed, the charge flown from the battery is given by
(b) Work done, W
(c) The change in the energy stored in the capacitors is given by
(d) The heat developed in the system is given by