<u>Answer:</u> The outermost valence electron enters the p orbital.
<u>Explanation:</u>
Valence electrons are defined as the electrons which are present in outer most orbital of an atom.
Sulfur is the 16th element of the periodic table having 16 electrons.
Electronic configuration of sulfur atom is 
The number of valence electrons are 2 + 4 = 6
These 6 electrons enter s-orbital and p-orbital but the outermost valence electron will enter the p-orbital.
Hence, the outermost valence electron enters p orbital.
Look at the periodic table to find the charge on atoms.
Magnesium is +2 and Nitrogen is -3. Since there are two nitrogen charge 2*-3 = -6 there needs to be 3 Mg then (3*2+ = 6+) to pair with the two nitrogen.
3 Mg(+2) + 2 N(-3) = Mg3N2