When heat energy is converted to work, some energy is degraded to a less useful form: heat given off to the environment.
The applicable law in Question 9 is:
Imported from external platform