If in an experiment we're working with Mg, HCl acid, and H20. We stick the magnesium in the acid mixed with water and the Mg dissolves.

One of the products is hydrogen gas. If the water in the tube is evaporated, the other product, a white salt remains. Write a balanced chemical equation for this reaction.

What is the molar relationship between the solid Mg and the H2 gas?

Mg + 2 HCl -> MgCl2 + H2

The reaction as written tells you that the molar ratio is one mole of H2 gas produced per mole of Mg consumed.

how do you solve mole ratios?