Oxygen comes in a binary molecule
Water ( Hydrogen oxide ) has only 1 Oxygen atom
So it takes two water molecules to equal the 1 Oxygen molecule.
Two water molecules contain 4 Hydrogen atoms.
Hydrogen also comes in a binary molecule
so it takes two Hydrogen molecules to equal 4 Hydrogen atoms.