Pentane (C_5 H_12) and hexane (C_6 H_14…