contestada

A 0.940g sample of barium chloride is heated and 0.800g of anhydrous residue remains after cooling. How many moles of anhydrous barium chloride were present in the sample? How many moles of water were present in the sample?