Molecules in the solid phase have the least amount of energy, while gas particles have the greatest amount of energy.
Tea gets cool beacuse of heat tranfer through convenction
Heat transfers from a area of hot region to cold.
The tea is hot in this case, due to taht factor the heat will move towards teh cooler region which is coke and will make the coke warm
Hope this helped!