Let's write down the equation of reaction of burning of hydrogen and over substances we will specify data from statement of the problem:

1. Let's find molar masses of hydrogen and water
M (H2) =1*2=2g/mol, M(H2O) =1*2+16=18g/mol
2. Let's find amount of substance of hydrogen, the corresponding 12 g of hydrogen.
ν=m/M; ν=12г/2г/моль =6 mol.
3. From the equation of reaction it is visible that 2 mol of water are formed of 2 mol of hydrogen (we determine by the coefficients facing hydrogen and water). If have burned 6 mol of hydrogen, then also 6 mol of water are formed. We find the mass of water on formula: m=ν*M=6 mol*18 g/mol of =108 g.
Answer: m(H2O) of =108 g.