The correct option is B sum of the atomic masses of all atoms in a formula unit of a compound
The formula mass of a substance is defined as the sum of the atomic masses of constituent atoms in a compound. This is generally used for compounds which do not contain discrete molecules, but ions as their constituent units. Example: NaCl (sodium chloride) made of sodium and chlorine ions. Formula unit mass of NaCl = (1 × 23) + (1 × 35.5) = 58.5 u