You can use the periodic table.
H2O = Water
Two hydrogen
One oxygen
I don’t know if your numbers are rounded but if you look at your periodic table, you will see a number close to 1.008 for hydrogen and a number close to 15.999 for oxygen. You can multiple the number for hydrogen twice and add 15.999. You should get a number close to 18.015 g/mol.