Ionic compoundsFoundation2 marks

What is the formula of magnesium oxide? Explain how it forms.