Try to picture it for yourself with smaller numbers and smaller things. Imagine having three (instead of 3.49x1023) packets, each containing two pencils and one erases. How many pencils do you have?
Now realize that each packet "formula" is (pencil)2eraser - so it is in a way equivalent to H2O. Do you see it now?