When two objects A and B are supplied with the same quantity of heat, the…