Explanation:
Let the mass of the compound be 100g.
Mass of Sulfur = 96g.
=> Moles of Sulfur
= 96g / (32.07g/mol) ≈ 3
Mass of Hydrogen = 4g.
=> Moles of Hydrogen
= 4g / (1.008g/mol) ≈ 4
Mole ratio of Sulfur to Hydrogen = 3 : 4,
Empirical formula of compound = S3H4.