A mass of 10.05 g of a hydrated barium chloride (BaCl2 xH₂O) is placed in a crucible and heated. After heating, 8.57 g of an anhydrous barium chloride (BaCl2) remains. What is the formula and the name of the hydrate?

Please explain how to do it!​