The Law of Conservation of Mass states that, in ordinary chemical reactions, mass is neither destroyed nor created.
That is, the mass of the reactants must equal the mass of the products.
2H₂O(ℓ) ⟶ 2H₂O(g)
V/L: 22
m/g: 18
The mass of liquid water is 18 g, so the mass of the water vapour must equal 18 g.
Even though the water vapour is a gas, it still has a mass of 18 g.