Hello!
The answer is: C2H6
Why?
First, we need to find the empirical formula of the compound:
Looking for the relative atomic mass for each element:
![C=12.011g/mol\\H=1.008g/mol](https://img.qammunity.org/2020/formulas/chemistry/middle-school/bzd8ncjglpxccfetxmucco857aqqvjq9vt.png)
Finding the number of moles for each element:
![C=32g*(1mole)/(12.011g)=2.67mole\\H=8g*(1mole)/(1.008g)=7.93mole](https://img.qammunity.org/2020/formulas/chemistry/middle-school/8heomptwk167fcxekrbobhrykqv8aah1gt.png)
Then, we need to determinate the mole ratio by dividing each result into the smallest number:
![C=(2.67)/(2.67)=1\\\\H=(7.93)/(2.67)=2.97=3](https://img.qammunity.org/2020/formulas/chemistry/middle-school/x2zmqdqxlx2sfnpwhsyaxfidomp51gn7gi.png)
So, the empirical formula would be CH3
We are given the molar mass of the compound is equal to 30 g/mol
We need to compare the empirical formula molecular mass and the molecular formula molar mass in order to find the number of atoms of the compound:
Empirical formula molar mass:
![CH3=12.011+(1.008)*3=15.03g/mol](https://img.qammunity.org/2020/formulas/chemistry/middle-school/l2zb3v0d5jwdoulpttswrb5qbbzsl0rtea.png)
Molecular formula molar mass = 30.0 g/mol
So, by dividing the molecular formula molar mass by the empirical formula molar mass we have the number of atoms of the compound:
![(30g/mol)/(15.03g/mol)=2](https://img.qammunity.org/2020/formulas/chemistry/middle-school/icqxqbz1hd3bxniwlu5g2mwiqj6f4966kb.png)
Therefore,
The molecular formula will be: (CH3)2= C2H6
Have a nice day!