Postulates of kinetic theory states that The average kinetic energy of a gas particle is directly proportional to the temperature. An increase in temperature increases the speed in which the gas molecules move.
KE = 3/2 KbT
so when hydrogen and oxygen are at the same temperature they will have same KE.