1st alkali metal Li(Z=3)
Electronic configuration of lithium =1s2,2s1
Alkali earth metal of 3rd period Mg ( Z=12 )
Electronic configuration of magnesium [Ne]3s2
The atomic difference between 1st alkali metal and alkali earth metal of 3rd period table: =12−3=9