The energy stored in a capacitor of capacitance 5μF is 40J. Calculate the voltage applied…