An atom of element X has an electronic configuration of \( 1s^22S^22p^63s^23p^3. \) In which…