A Nitrogen got 7 electrons, which means every Nitrogen got 3 pairs of electrons and 1 single electron, ready to be shared.
A second nitrogen come with the same amount of electrons, 3 pairs and 1 single ready to shared.
The 2 nitrogens put in common their single electrons to create a pair.
Which means, that 1 pair of electron is shared between the nitrogens in a molecule of N2
Hope this Helps! :)
Please show the whole question including the diagram so that you can receive help with the question.
The molecules are frozen in place but still vibrate
MgH2 + 2 H2O → Mg(OH)2 + 2 H2