Answer: The empirical formula is
. I think you said molecular formula instead of empirical formula, because there is not enough information to determine the molecular formula of the hydrocarbon.
Step-by-step explanation:
All of the masses I have used are in grams.
First, calculate the molar mass of carbon dioxide and water:
Molar mass of

Molar mass of

Then, calculate the number of moles of carbon dioxide and water:
# of mol of

# of mol of

Third, calculate the number of moles of carbon in the carbon dioxide and the number of moles of hydrogen in the water:
# of mol of

# of mol of

Finally, divide the number of moles of carbon and the number of moles of hydrogen by the smaller number obtained in step 3 for the number of moles of each element (in this case 0.4):
For

For

Since the ratio of C (carbon) to H (hydrogen) in the hydrocarbon is 1 to 2, the empirical formula of the hydrocarbon is
.