The complete electronic configuration of Mg is 1s² 2s² 2p⁶ 3s² and the electronic configuration of Al is 1s² 2s² 2p⁶ 3s² 3p¹.
The The complete electronic configuration of Mg is 1s² 2s² 2p⁶ 3s² and the electronic configuration of Al is 1s² 2s² 2p⁶ 3s² 3p¹. so Mg has more stable configuration than the Al. removing an electron from the 3s² orbital of Mg requires more energy than removing an electron from the 3p¹ orbital of Al .
However, when adding an electron, the electron affinity for Mg is less negative than that of Al because the electron is being added to sublevel.
To learn more about electronic configuration here
https://brainly.com/question/13840107
#SPJ4