To solve this problem all you would have to do is to use the stoichiometric ratio of 1 mol of Oxygen would react with 2 mol of H2O, to find moles of water produced.
1 mol of O2 = 2 mol of H2O
20 mol of O2 = 40 mol of H2O.
The moles of water produced would be 40 moles.