The configuration representing an alkaline earth metal is
[Ar]3d104s1
[Ar]3d104s2
[Ar]4s2
[Ne]3s23p2
please explain how to answer this type of question