Answer:
magnesium belongs to group 2 while nitrogen belongs to group 5.
I hope this helps
4.5m questions
5.9m answers