A. by giving one pair of electrons to the oxygen atom
B. by sharing one pair of electrons, both electrons provided by the magnesium atom
C. by sharing two pairs of electrons, both pairs provided by the oxygen atom
D. by sharing two pairs of electrons, each atom donating one pair of electron