Step 1: Use the ideal gas law to compare the pressures in both vessels.
The ideal gas law is: \( PV = nRT \)
Since both vessels A and B have the same volume (V), same temperature (T), and the gas constant (R) is the same, the pressure is directly proportional to the number of moles of gas:
\( P \propto n \)
Step 2: Calculate the number of moles of hydrogen in vessel A.
Molar mass of hydrogen (H₂) = 2 g/mol
Mass of hydrogen = 1 g
So, moles of H₂ \( n_A = \frac{1}{2} = 0.5 \) mol
Step 3: Calculate the number of moles of oxygen in vessel B.
Molar mass of oxygen (O₂) = 32 g/mol
Mass of oxygen = 1 g
So, moles of O₂ \( n_B = \frac{1}{32} \approx 0.03125 \) mol
Step 4: Since pressure is proportional to the number of moles,
\( \frac{P_A}{P_B} = \frac{n_A}{n_B} = \frac{0.5}{0.03125} = 16 \)
Final Answer: \( \frac{P_A}{P_B} = 16 \)