Find the ratio by mass of the combining elements in MgCl2
As we Know
Atomic mass of Mg=24Cl=35.5
So Ratio by mass of MgCl2 =Mg:Cl×224:35.5×224:71
Hence the ratio by mass of MgCl2=24:71