If you perform two gram to gram calculations, you can determine both the amount of Cl2 produced AND the limiting reactant.
Grams of substance A must be converted to moles of substance A. Moles of substance A must be converted to moles of substance B. Moles of substance B must be converted to grams of substance B.
1st calculation: assume that HCl runs out first (is the limiting reactant) and MnO2 is in excess.
44.3 g HCl • (1 mol HCl / 36.46 g HCl) • (1 mol Cl2 / 4 mol HCl) • (70.9 grams Cl2 / 1 mol Cl2) = 21.5 g Cl2 produced IF HCl is limiting.
2nd calculation: assume that MnO2 runs out first (is the limiting reactant) and HCl is in excess.
41.9 g MnO2 • (1 mol MnO2 / 86.94 g MnO2) • (1 mol Cl2 / 1 mol MnO2) • (70.9 grams Cl2 / 1 mol Cl2) = 34.2 g Cl2 produced IF MnO2 is limiting.
By analyzing the amount PRODUCED for each calculation, we assume the reaction goes to completion. Therefore, the smaller amount of product is the true theoretical yield. 21.5 g Cl2 is made, which means HCl must be limiting.
Percent yield is the (actual yield / theoretical yield) * 100 to get a percentage. (83.3/100) = x / 21.5 grams Cl2 produced. (0.833 * 21.5 = 17.9 g Cl2 recovered in lab)