The average kinetic energy of gas particles is directly related to their speed. The kinetic energy (KE) of a particle can be expressed by the formula:
\[ \text{KE} = \frac{1}{2}mv^2 \]
where \(m\) is the mass of the particle, and \(v\) is its speed. In your case, since the mass of each particle in samples A and B is the same, the kinetic energy will depend primarily on the speed of the particles.
Since it is stated that the particles in sample A have a higher average speed than the particles in sample B, the particles in sample A will have a higher average kinetic energy. Thus, the particles in sample A have the higher average kinetic energy.