If you know moles of the reactand then you can use that to figure out moles of the product using dimensional analysis. You multiply the moles of the reactant by the (product*coefficient)/(reactant*coefficient). The reactants would cancel out and you would be left with moles of product. That would be your theoretical yield. I hope you understand as it is difficult to explain without an example.