In the hydrated chloride of magnesium, MgCl2.xH2O, the value of x is:
What is the chemical name of ionic compound MgCl2?