The element Magnesium (Mg) has an atomic number of 12. How many electrons are in its valence shell?

Show your work!