How do you calculate the relative formula mass of a compound?

GCSE