So let's throw out our electron configuration for N.
So two electrons go into the one s, two electrons going to the two s, and now we have three electrons going to our two p. So altogether we have five balanced electrons because we have five electrons in the outermost shell for anna.