From the balanced equation and the molar masses of Zn, HCl, and H2, we can determine the theoretical yield of H2. This is a "limiting reactant" question (because we are given the masses of both reactants & we don't know which is in excess & which is limiting). Hence we need to do two separate calculation. The one producing the lower mass of H2 gives us the answer.
Let's first consider using the Zn:
(2.02 g H2/1 mol H2) (1 mol H2/1 mol Zn) (1 mol Zn/65.38 g Zn) 25.0 g Zn = 0.7724 = 0.772 g H2
So, if the Zn is limiting then we get a yield of 0.772 g H2
Now, if the HCl is limiting:
(2.02 g H2/1 mol H2) (1 mo H2/2 mol HCl) (1 mol HCl/36.46 g HCl) 17.5 g HCl = 0.484 g H2
The HCl produces the lower amount of H2, so the mass of hydrogen produced is 0.484 g. The HCl is the limiting reactant & the Zn is in excess.