Hint: How much heat must be removed to hold the temperature steady?
Note: The temperature you will calculate here is a lower bound since neither mixing nor heat transfer will be perfectly efficient in the real system.
Hint: Except for the energy-momentum relation, the derivation is in all respects identical to that for the ordinary particle in a box.