Answer:
3MgCl2 has 9 atoms.
Explanation:
The Element Magnesium (Mg) has 3 atoms.
The Element Chloride (Cl) has 6 attoms.
Their fore 6 + 3 is 9 of course. 3MgCl2 has 9 atoms.
BTW: 3MgCl2 is a molecular compound as well as H2O and CO2.