Define the law of the conservation of mass. Using this definition: if you have the reaction of 40 g of water decomposing into hydrogen and oxygen what would be the total mass of your products?

Why don't you look up the Law of conservation of mass and see what it means?