step: magnesium is a kind of alkaline earth metal & fluorine is a kind of gas & magnesium and fluorine react chemically producing magnesium fluoride
inference: magnesium fluoride is a new substance produced by magnesium and fluorine reacting chemically