A heat engine is a system that receives thermal energy from a hot source, then uses this energy to perform some mechanical action, doing work into another system, and then send the remaining thermal energy into the cold source (since some energy will be converted to perform the work, the temperature from the input (hot source) to the cold source will decrease).
In other words, this engine can convert thermal energy into mechanical energy.
Therefore the correct option is b.