You assume that the temperature of both containers are equal, and do not change as a result of the chemical reaction. You also assume that the gases behave ideally. (The only way this problem can be solved) You cannot calculate the absolute amounts of oxygen and carbon monoxide present, but you can calculate the relative amounts. From there, use the balanced equation. Remember how ideal gases behave with regards to volume, pressure, etc....