It is given that the ratio of hydrogen and oxygen by mass to form water is 1:8. Then, the mass of oxygen gas required to react completely with 1g of hydrogen gas is 8g. Therefore, the mass of oxygen gas required to react completely with 3g of hydrogen gas is 8 × 3g = 24 g.
