Answer: This is so because, they have same number of valence electrons.
Step-by-step explanation:
In a periodic table, elements are arranged in 18 vertical columns known as groups and 7 horizontal rows known as periods.
Elements arranged in a group show similar chemical properties because of the presence of same number of valence electrons.
We are given:
Magnesium is the 12th element of the periodic table having electronic configuration
![1s^22s^22p^63s^2](https://img.qammunity.org/2020/formulas/chemistry/middle-school/eu0js99ffkj20hdrmb1m1ad4tcus7cap0s.png)
It has 2 valence electrons.
Calcium is the 20th element of the periodic table having electronic configuration
![1s^22s^22p^63s^23p^64s^2](https://img.qammunity.org/2020/formulas/chemistry/middle-school/516okcfn705nlu6kfo439y3zzx6f5ou54g.png)
It has 2 valence electrons.
Hence, this is so because, they have same number of valence electrons.