The compound with the empirical formula CNH4 has a mass of 12.0 g for 0.2 mol, leading to a molar mass of 60 g per mole. By calculating the molar mass from the empirical formula, which totals 30 g (12 for carbon, 14 for nitrogen, and 4 for hydrogen), the value of n is determined to be 2. Multiplying the empirical formula by n results in the molecular formula C2N2H8. Therefore, the molecular formula of the compound is C2N2H8.