The pair of atomic numbers which belong to the same group :
The elements in option D with atomic number 12 and 56 are magnesium and barium. Both are in Group 2 of the periodic table as each has 2 elements in the valence shell
Electronic Configuration of Barium:
1s22s22p63s23p63d104s24p64d105s25p66s2
Electronic Configuration of magnesium:
1s22s22p63s2