Solution:
Key idea: Gay-Lussac's law of combining volumes — when gases react together, they do so in volumes which bear a simple whole-number ratio to one another and to the volumes of the gaseous products, all volumes being measured at the same temperature and pressure.
Step 1 — What we compare. Only the volumes of the substances that are gases under the stated conditions are compared.
Step 2 — (a) Hydrogen and oxygen forming steam. Water must stay as a gas (steam) for its volume to be counted, so we take the water as steam, as the question says. (At 11 °C water would actually condense to a liquid; the 2 : 1 : 2 ratio holds when the volumes are measured at a temperature at which the water remains steam, e.g. above 100 °C.)
2H2(g)+O2(g)→2H2O(g)
By experiment, 2 volumes of hydrogen + 1 volume of oxygen → 2 volumes of steam:
H2:O2:H2O=2:1:2
Step 3 — (b) Ethane burning in oxygen at S.T.P. At S.T.P. (0 °C) the water formed is a liquid, so its volume is negligible and only the gas volumes are compared.
2C2H6(g)+7O2(g)→4CO2(g)+6H2O(l)
2 volumes of ethane + 7 volumes of oxygen → 4 volumes of carbon dioxide:
C2H6:O2:CO2=2:7:4
Therefore, in (a) the volumes are 2 : 1 : 2 and in (b) 2 : 7 : 4 — simple whole-number ratios, as Gay-Lussac's law states.