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