Respuesta :

The oxygen wants to have a full valance shell and magnesium has just enough extra electrons to fill it.