Question: how many moles of water in 18 grams?
Answer: If we have one mole of water, then we know that it will have a mass of 2 grams (for 2 moles of H atoms) + 16 grams (for one mole O atom) = 18 grams.