A balanced equation gives ratios of particles, so its coefficients apply to moles, not grams. Convert each reactant to moles. For each, divide its moles by its coefficient; the smaller result tells you the amount of reaction possible. Convert to product last. The theoretical yield follows from that limit; percent yield compares the actual recovered amount with it.
Worked example
Which reactant runs out first?
For 2A + B → 3C, start with 5 mol A and 2 mol B. What is the theoretical yield of C?
A supports 5/2 = 2.5 mol of reaction. B supports 2/1 = 2. B limits the reaction, so the maximum C is 2 × 3 = 6 mol.
Does the reactant with fewer moles always limit the reaction?
No. Compare moles per reaction coefficient, not raw moles.