GREETINGS!
_____________________________________
Answer:
N and C
_____________________________________
WHY OPTION A?
Because Lithium and Sodium belong to group 1A whereas Magnesium is from group 2A, which are S block elements and they form ionic bond.
_____________________________________
HOPE IT HELPS!