The atomic number of an element whose cation, X2+, has the ground state electronic configuration…