Correct option is D
The electron distribution (electron configuration) in a magnesium atom, which has an atomic number of 12, is 2, 8, 2. This means that magnesium has 2 electrons in its first shell, 8 electrons in its second shell, and 2 electrons in its third shell. This configuration reflects how the electrons are arranged around the nucleus in different energy levels.