In the circuit shown X is joined to Y for a long time and then X is joined to Z. The total heat produced in R2 is: