(a) One formula unit contains 2 Cl, of mass 2×35.5=71.0 u, and this is 74.74 % of the formula mass:
formula mass=0.747471.0 u=95.0 u
atomic mass of M=95.0 u−71.0 u=24.0 u
M is magnesium and the salt is MgCl2. It is an ionic compound: the solid is a three-dimensional arrangement of Mg2+ and Cl− ions, with no separate MgCl2 molecules. The formula only gives the ratio of the ions (1:2), so the mass of one formula unit is called the formula mass, not the molecular mass.
(b) Amount of formula units:
n=95.0 g mol−11.90 g=0.0200 mol
Each formula unit contains one Mg2+ ion and two Cl− ions, so there are 0.0400 mol of Cl− ions and 0.0600 mol of ions in all:
Cl− ions=0.0400×6.022×1023=2.41×1022
total ions=0.0600×6.022×1023=3.61×1022
The sample contains 2.41×1022 chloride ions and 3.61×1022 ions altogether (and no molecules of MgCl2 at all).