When hot tea is mixed to chilled coke, tea loses heat and coke gains heat. Thus, tea cools down but coke gets heated. Because it is liquid and liquid does not totally cool down to the ambient temperature, it and the iced drink will eventually reach the same temperature.