If an electron goes through a 9V battery how much energy does it gain? how much

If an electron goes through a 9V battery how much energy does it gain? how much energy would the electron gain if the battery were 12V instead? please use electric potential and/or potential difference equations, explain clearly and using steps.