The answer would be D Heterogeneous
umm how do you begin answering that ??
Either protons or neutrons
Magnesium (Mg) has atomic number 12 with electronic configuration :

The valence shell of Mg is 3s which has 2 electrons as shown in above electronic configuration.
Therefore, A = 3 and B =2