# Relative Molecular Mass - Example 2

Question:
The general formula of a hydrocarbon is CnH2n and the relative molecular mass of the hydrocarbon is 84. Find the value of n.

Relative molecular mass of CnH2n
= n(12) + 2n(1) = 84
14n = 84
n = 84/14 = 6