A charged ideal capacitor stores energy equal to one half of charge times voltage. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Use charge and voltage
The capacitor stores 12 coulombs at 6 volts.
Q=12CV=6V
Energy is half charge times voltage
For an ideal capacitor, stored energy is one half of charge times voltage.
U=21QV
Compute stored energy
One half of 12 times 6 gives 36 joules.
U=21⋅12C⋅6V=36J
Charge and voltage both enter the budget
The checked diagram is the middle row. Other exact rows show the same one-half charge-voltage budget without using decimals.