Step 1: Use rms velocity relation.
\[
v = \sqrt{\frac{3kT}{m}}.
\]
For same rms velocity,
\[
\sqrt{\frac{T}{m_{\text{O}_2}}} = \sqrt{\frac{T/16}{m_{\text{gas}}}}.
\]
Step 2: Simplify.
\[
m_{\text{gas}} = \frac{m_{\text{O}_2}}{16}.
\]
Since molecular mass of \( \text{O}_2 = 32 \),
\[
m_{\text{gas}} = 2.
\]
This corresponds to hydrogen (\( \text{H}_2 \)).
Step 3: Final Answer.
Hence, the gas is hydrogen.