Answer
correct
Work Step by Step
This formula is also correct. Because Mg+ generally has a charge of 2+, we know that the other atom should generally have a charge of 2-. This is the case, for Oxygen usually has a charge of 2-, being two groups away from the Noble gases.