One mole of hydrocarbon contains 6g of hydrogen. If the molecular weight is 54, the…