As it can be seen from the chemical equation, 2 moles of hydrogen reacts with 1 mole of oxygen.
Therefore, 2 moles of oxygen will react with 4 moles of hydrogen. So, oxygen is the limiting reagent and hydrogen is the excess reagent. Therefore, the reaction equation will be as follows.
Thus, we can conclude that 4 moles of water are produced when 5 moles of hydrogen gas react with 2 moles of oxygen gas.