well to understand this you have to start by understanding gay-lussac's law of combining volumes. In which equal volumes of gases in the same conditions, pressure and temperature, combine in simple whole number ratios.
eg, 2H2 + O2 ---> 2H2O
ratio, 2:1:2, ie whole number ratio.
Now...