It is given that the capacitance of a charged capacitor,
The formula of electrostatic energy is,
Substitute the values.
According to the law of conservation of charges,
Substitute the values.
The electrostatic energy for the combination of two capacitors is,
Substitute the values.
The amount of electrostatic energy lost by capacitor is,
Thus, the electrostatic energy of the first capacitor lost in the form of heat and energy is