Atomic masses
C = 12 g / mol
H = 1 g / mol
S = 32 g / mol
Given masses ( assuming 100g of substance )
C = 44.77 g
H = 7.46 g
S = 47.76 g
Moles
C = 44.77 / 12 = 3.73
H = 7.46 / 1 = 7.46
S = 47.76 / 32 = 1.49
Molar ratio C : H : S = 3.73 : 7.46 : 1.49
Dividing by the smallest ratio ,
= 2.5 : 5 : 1
= 5 : 10 : 2
C5H10S2 is the required compound