Batteries have chemical energy.
When the flashlight is turned on, the chemical energy is transformed into electrical energy, and then into light energy, and thermal energy.
So. The correct option is ;
Chemical energy to electrical energy to light energy & thermal energy.