The correct statement is:
They have valence electrons in the same energy level.
Nitrogen (N) and oxygen (O) are both in the second period of the periodic table, which means their valence electrons are in the second energy level (n=2). However, they do not have the same number of valence electrons: nitrogen has 5 valence electrons, while oxygen has 6.