Heat is the SUM of the kinetic energy of the particles in a given sample of matter.
Temperature is determined as the average kinetic energy of all the particles in a system.
If the total heat content of the particles in a system is divided by the total number of particles in the system, the result is the average kinetic energy, which would determine the temperature. Two different systems can have the same heat content if their total kinetic energy values are the same. But, the system with the larger number of particles will have a lower average kinetic energy, or a lower temperature. BUT, The average Kinetic Energy of System A is 5 units per particle. The average Kinetic Energy of System B is 10 units per particle.