Answer: Sound travels faster in bottle A, 2 times as fast as in bottle B.
Given: mass of hydrogen in bottle A, \(m_A = 12\) g; in bottle B, \(m_B = 48\) g. The bottles are identical (same volume \(V\)) and at the same temperature.
Density: \(\rho_A = \dfrac{12}{V}\), \(\rho_B = \dfrac{48}{V}\), so \(\rho_B = 4\rho_A\).
For the same gas at the same temperature, the speed of sound is inversely proportional to the square root of density: \(v \propto \dfrac{1}{\sqrt{\rho}}\).
\(\dfrac{v_A}{v_B} = \sqrt{\dfrac{\rho_B}{\rho_A}} = \sqrt{\dfrac{48}{12}} = \sqrt{4} = 2\)
\(v_A = 2\,v_B\)
So sound travels faster in bottle A (lower density), and it is 2 times as fast as in bottle B.