Answer:
these atoms are stable because a stable atom has a net charge of 0. In other words, it has an equal number of protons and electrons. The positive protons cancel out the negative electrons. In this question they mention that the number of electrons is 8, now if we see the proton/atomic number of oxygen, it is also 8. Therefore, the net charge becomes zero and hence the atoms are stable.
hope that helps..