Let q be the charge on the charged parallel plate capacitor.
Energy stored in it is,
U=q22C
When another similar uncharged capacitor is connected, the net capacitance of the system is,
C′=2C
The charge on the system is constant. So, the energy stored in the system now is,
U′=q22(C′)2
⇒ U′=q22(2C)
⇒ U′=q24C
Thus, the required ratio is,
U′U=q24Cq22C
⇒ U′U=12