(1) Fuel combustion is a chemical change. When fuel burns, the gas temperature rises, the internal energy increases, and the chemical energy is converted into internal energy.
(2) When the gasoline engine works, the internal energy is converted into mechanical energy through the expansion of gas.
So, the answer is: inside; Do the work.