Atoms are far too light to weigh one at a time, so their masses are compared with a standard: one twelfth of the mass of an atom of carbon-12. The relative atomic mass, Ar, of an element is the average mass of its isotopes on this scale. It is an average, which is why chlorine has the value 35.5.
The relative molecular mass, Mr, of a substance is found by adding up the relative atomic masses of all the atoms in its formula. For ionic compounds the same sum is called the relative formula mass.
These values are ratios, so they have no units. The Ar values you need are given in the question or the Periodic Table.