Quite easy. Follow the steps below.
In a scenario like this, assume you have
So for each element, the percent is the total percent of
Now, you will convert grams to moles for each element. Find the molar mass of each element from the periodic table and plug in.
Now, divide every answer by the smallest number, which in this case is 0.5.
These numbers are going to give you the ratios of the elements in the compound to give you an empirical formula.