ANSWER
there are 20 number of atoms in compound
Explanation:
In a formula unit of Mg(OH)2, there are one magnesium ion and two hydroxide ions; or one magnesium, two oxygen, and two hydrogen atoms.