What is thermal energy?

Options are
The distance between particles and their freedom to move around
A material that is a conductor
The measurement of energy in an object due to position, conduction or chemical
The total kinetic energy of all particles in a substance

The total kinetic energy of all particles in a substance