Mg + S → MgS
This equation shows that one atom of magnesium reacts with one atom of sulfur to produce one molecule of magnesium sulfide (MgS).