(a)
The ionisation energy values for valence electrons are comparable to remove electrons from inner shell very high amount of energy is needed. In the given values there is a biggest jump between $IE_{4}$and $IE_{5}$. Hence, there are four valence electrons for the atom $X$.