How to solve for the excess reactant