Temperature and ideal gas

Thermal equilibrium leads to same temperature of two systems : https://blackdoghole.wordpress.com/2019/04/15/thermodynamics-preliminary-system-and-three-laws/ yet, the average energy of particles, which consist two system, comes to the same, as a result of equipartition of energy for an elastic collision only, long time, closed system.