On this question, first, we need a balanced equation:
2 CO(g) + O2 (g) → 2 CO2 (g)
After that, since you are given amounts of both reactants, CO and O2, we need to determine which will limit the amount of product formed (which is the limiting reactant). This is done by converting the masses of each of the reactants into moles of reactant (using molar mass), then converting to moles of CO2 (using the stoichiometric coefficients from the balanced equation).
2.700 g CO (1 mol CO / 28.010 g CO) = 0.09639 mol CO (2 mol CO2 / 2 mol CO) = 0.09639 mol CO2
2.700 g O2 (1 mol O2 / 31.998 g O2) = 0.08438 mol O2 (2 mol CO2 / 1 mol O2) = 0.1688 mol CO2
The limiting reactant is the reactant that will be used up first. As such, it will limit the amount of product that can maximally be produced. We can determine which is the limiting reactant by seeing which results in the smaller quantity of product (usually in moles as it saves a step). From the work above, we see that CO produces a smaller quantity of moles of CO2, and is, therefore, the limiting reactant. As such, the theoretical yield is 0.09639 moles of CO2. The theoretical yield is the maximum amount of CO2 that can be recovered.
As a note, the theoretical yield can also be given in grams. If the question asks for the maximum amount of grams of CO2 that can be made, you would take the theoretical yield in moles and multiply It by the molar mass:
0.09639 mol CO2 (44.009 g CO2 / 1 mol CO2) = 4.242 g CO2