How much does 1 mol of MgCl2 weight?

24.305 g + 2 · 35.45 g = 95.2 g

We add together all the atomic masses of the elements in the formula.