Write the valence shell electronic configuration of an element present in the 3rd period and Group IIA.

An element in the 3rd period and Group IIA is Magnesium (Mg). Its atomic number is 12, and its electronic configuration is:
1s² 2s² 2p⁶ 3s².
This indicates that the valence electrons are in the 3s orbital, with two electrons.