Convert the given masses or percentages of each element into moles
If percentages are given, assume a 100 g sample
Divide each mole value by the smallest mole value
If needed, multiply all ratios by a whole number to get integers
Write the empirical formula using the simplest whole-number ratio of atoms
