Answer:
a). 5 atoms 
b). 13 atoms
Step-by-step explanation:
Atoms: It is the smallest unit of the element.
Atomicity : Total number of atoms present in the molecule. For e.g each molecule of 
 gas contain 2 atoms of nitrogen.
 = 1 atom of C + 4 atoms of H
 = 5 atoms

= 3 atoms of Mg + (1 atom of P + 4 atoms of O )

= 3 +5 

= 3 + 10
= 13 atoms