Dear student,
mass of the compound from its empirical formula = CH3 = 12+3(1) = 15
Product of mass of compound from empirical formula and a factor (x) equals the molecular weight.
x . CH3 = 30
15x = 30
x = 30/15 = 2
Thus, 2 CH3
Therefore, molecular formula = C2H6
Regards