Total energy stored initially means energy stored in the capacitor
`Q_(0)^(2)/(2C) = (10 xx 10^(-3))^(2)/(2 xx 50 xx 10^(-6))`= 1 joule
total energy is `Q_(0)^(2)/(2C)`, So, when the total energy is shared equally between the capacitor and inductor, the energy stored in the capacitor that time will be half of the total energy = `1/2(Q_(0)^(2)/(2C))^(2)`