which nonmetals could form an ionic compound with the formula MgX^2 ( where X represents the nonmetal)? (possible, not possible) (nonmetals-Br, F, S, Cl, N, O)​