Remember m/z = molecular weight of the compound.

 

Number of atoms of a particular element  = mass %   x molecular weight     

in a molecular formula                                  100       x atomic weight of element