The empirical formula mass is:
(2 x 12.01 g/mol for C) + (3 x 1.01 g/mol for H) = 26.04 g/mol
Then divide the molar mass by the empirical formula mass:
162.27 g/mol / 26.04 g/mol = 6.23
Since the ratio is approximately 6, multiply the empirical formula by 6 to get the molecular formula:
C2H3 x 6 = C12H18