Explanation:
Let compound X be 100g.
Molar mass of carbon = 12g/mol
Moles of C in compound X = 54.54/12 = 4.54mol.
Molar mass of hydrogen = 1g/mol
Moles of H in compound X = 9.09/1 = 9.09mol.
Molar mass of oxygen = 16g/mol
Moles of O in compound X = 36.37/16 = 2.27mol
Ratio of C:H:O = 4.54:9.09:2.27 = 2:4:1.
Hence, the empirical formula of X is C2H4O.