The formula for determining the number of moles is:
[tex] number of moles = \frac{mass}{molecular weight} [/tex]
Mass of compound = [tex] 3.5 g [/tex]
Mass of carbon dioxide produced = [tex] 5.13 g [/tex]
Mass of water produced = [tex] 2.10 g [/tex]
Molecular weight of water, [tex] H_2O = 18 g/mol [/tex]
Substituting the values in above equation:
[tex] number of moles = \frac{2.10 g}{18 g/mol}= 0.11667 mole [/tex]
Since, 1 mole of water contains 2 moles of hydrogen therefore, number of moles of hydrogen = [tex] 0.11667 mole\times 2 = 0.23334 mole [/tex]