Step-by-step explanation:
When 30 grams of barium chloride crystals when heated at 400 degree Celsius and again weighed again which comes to be 20 grams. This means that water of crystallization associated with the barium chloride crystal got vaporized when heated at 400 degree Celsius.
Water of crystallization: Water molecules associated to a crystal structure of a compound.

Hence, the sample of barium chloride crystals was hydrated.