Answer : The empirical formula of a compound is, 
Solution : Given,
If percentage are given then we are taking total mass is 100 grams.
So, the mass of each element is equal to the percentage given.
Mass of S = 30 g
Mass of F = 70 g
Molar mass of S = 32 g/mole
Molar mass of F = 19 g/mole
Step 1 : convert given masses into moles.
Moles of S = 
Moles of F = 
Step 2 : For the mole ratio, divide each value of moles by the smallest number of moles calculated.
For S = 
For F = 
The ratio of S : F = 1 : 4
The mole ratio of the element is represented by subscripts in empirical formula.
The Empirical formula =
= 
Therefore, the empirical formula of a compound is, 