We can use the relation between moles and number of molecules to find out how many hydrogen gas molecules (H2) were produced:
[tex]1\text{ mole = 6}\times10^{23}\text{ molecules}[/tex]In this case, 0.5 moles of H2 were produced, so we can set the following proportion:
[tex]\begin{gathered} 1\text{ mole-----6}\times10^{23}\text{ molecules} \\ 0.5\text{ moles----x molecules} \\ \\ x=\frac{6\times10^{23}\times0.5}{1}=3\times10^{23}\text{ molecules } \end{gathered}[/tex]So, we have produced 3x10^23 molecules of hydrogen gas.
[tex]\begin{gathered} \frac{600}{2}=300 \\ \frac{6\times10^2}{2}=3\times10^2=300 \end{gathered}[/tex]