In each of the following ionic compounds identify the main group to which X belongs:

A. XF2
B. MgX
C. X2O3
D. Na2X