But if the temperature of one object is higher than that of the other object, there will be a transfer of energy from the hotter to the colder object until both objects reach the same temperature.
(the temperature of one object; is; higher than that of the other object) (both objects; reach; the same temperature)
the temperature of one object both objects
is reach
higher than that of the other object
the same temperature