Which statement about nitrogen and phosphorus is correct

A. they are both inert
B. they have the same number of electron shells
C. they have the same number of valence electrons
D. they are both classified as halogens

C. they have the same number of valence electrons