Which area exhausts hot air and which area cools the CPU?

the metal part (the heatsink) removes hot air from the cpu and the fan exhausts it out the side, just like an engine, which uses coolant and a radiator to remove heat for optimal performance.