Two capacitors of capacitance $C_{1}=2 \mu \mathrm{F}$ and $C_{2}=3 \mu \mathrm{F}$ are connected as shown, to two batteries $A$ and $B$ which have $\mathrm{emf} 6 \mathrm{~V}$ and $10 \mathrm{~V}$ respectively. Energies stored in the capacitors $C_{1}$ and $C_{2}$ are
(a) $36 \mu \mathrm{J}, 36 \mu \mathrm{J}$
(b) $24 \mu \mathrm{J}, 24 \mu \mathrm{J}$
(c) $24 \mu \mathrm{J}, 36 \mu \mathrm{J}$
(d) $36 \mu \mathrm{J}, 24 \mu \mathrm{J}$