According to Joule's Law, we have the relationship between charge, voltage, and current:
W = Vq
where q is the charge
V is the voltage or the potential difference
W is the work done
From the given values and rearranging the equation:
V = 10J / 4.0x10^-2
V = 250 V
The voltage difference is 250 V