4g of hydrogen completely reacts with 32g of oxygen. What will be the mass of water thus formed?

4g of hydrogen completely reacts with 32g of oxygen. What will be the mass of water thus formed?

Equation for formation of water is as follows:
According to the law of conservation of mass,
image
Mass of reactants = Mass of products
Amount of water formed, (x) = (4 + 32)g = 36 g