Fact 1: an automobile engine transforms chemical energy into mechanical energy. 
Fact 2: The thermal energy has become mechanical energy, allowing the machine to do work.
An automobile engine transforms chemical energy allowing the machine to do work.