in a cup of ice and hot cocoa

Athe ice loses energy to the cocoa

Bthe cocoa loses energy to the ice

Cthere is no transfer of energy