According to law of conservation of mass, the mass of the elements on the product side should be equal to the mass of the elements on reactant side. In simple words, the number of atoms of each element should be same on the both sides. This can be achieved by balancing a chemical reaction.
Unbalanced chemical equation for combustion of ethane:
C2H6 + O2 → CO2 +H2O
The balanced chemical equation:
C2H6 + \(\frac72\)O2 → 2CO2 +3H2O
From the balanced chemical equation, we can observe that the coefficient of O2 is \(\frac72\)