In the circuit shown, the cells are ideal and of equal emfs. The capacitance of the capacitor is C and the resistance of the resistor is R. Xis first joined to Y and then to Z. After a long time, the total heat produced in the resistor will be
Word done by cell = 2q.V
= 4 (energy stored in capacitor)