Random Quiz # capacitors

since the question asked for the resistor, its only 14.4 mj, so if it asked for the power supply it would be the 28.8 mj? also if it asked for the capcitor its 14.4 mj as well?

Can anyone explain the difference in these formulas?