the atomic number of magnesium is 12 so there would be 12 protons and 12 electrons. you would then have to round the atomic mass at the bottom up or down giving you the mass number. subtract the number of protons from the mass number to give you neutrons. there is 12 neutrons