Explanation:
NO₂⁻
Valence electrons of nitrogen = 5
Valence electrons of oxygen = 6
Charge = 1 (Negative which means that the electrons are being added)
The total number of the valence electrons = 5 + 2(6) + 1 = 18
The Lewis structure is drawn in such a way that the octet of each atom and duet for the hydrogen in the molecule is complete.
The structure is drawn in the image below.
It exists in two resonance structures.