Concept:Elements in the same group of the periodic table have the same number of valence electrons.Explanation:Calcium and magnesium are both found in Group 2.Each of them has 2 valence electrons in its outermost shell.This identical valence electron configuration gives them similar chemical properties.Being metals or forming cations is not the defining reason for their group placement.Answer:D. have same number of valence electrons