Magnesium [Mg] + Oxygen [O2] --> Magnesium oxide [MgO]
See, When magnesium is burned in air,it reacts with oxygen, here both of them(Mg & O) gets combined with each other, thus it is a combination reaction.
Now, balance this equation first;
Now, as you can see that 2 molecule of magnesium gets combined with one molecule of oxgyen and forms 2 molecules of magnesium oxide. And let us understand how they are bonded with each other;
Mg × × • • • •
• O • • O •
• • • •
Mg × ×
and as 2 Mg are bonded with 2 oxygen, they will together result in 2 molecules of magnesium oxide.