Consider two capacitors in air each with a capacitance C, both capacitors then were filled with liquid having a dielectric constant k and each of them was charged with charge q. Two capacitors are connected to each other by a resistor R. A liquid in one of these capacitors leaks out. What is produced heat?