Option (B) is correct.
Explanation: At the same temperature every molecule, of either gas, has the same average translational kinetic energy 23kBT. So the totals are in the ratio of the numbers of molecules. One gram contains 1/M moles:
NO2NHe=1/321/4.0=8⇒Etr,O2Etr,He=8
For the internal energy, a helium atom has only 23kBT, but a rigid oxygen molecule also rotates and has 25kBT:
UO2UHe=8×5/23/2=4.8
(A) is wrong: it multiplies by 35 instead of 53, giving helium the larger energy per particle.
(C) is wrong: it forgets the rotational energy of the oxygen molecules, which is part of their internal energy.
(D) is wrong: these are the ratios per molecule; equal masses contain very different numbers of molecules.