Two identical parallel plate capacitors A and B are connected to battery of V volts with the switch S closed. The switch is now opened and the free space between the plates of the capacitors is filled with a dielectric of dielectric constant K. Find the ratio of the total electrostatic energy stored in both capacitors before and after the introduction of the dielectric.