The empirical formula of an organic liquid hydrocarbon is XY. If the relative molar masses…