We use the reaction equation to find the moles of each substance from the given masses.
So, the molar ratios of x and n are 0.22 and 0.54 respectively, for relative molar ratios of 0.29 and 0.71. That ration means that
The hydrocarbon formula is thus
The formula is thus
This is the common form of an alkane