A reaction chamber contains a mixture of $\mathrm{CO}_{2}, \mathrm{CO},$ and $\mathrm{O}_{2}$ in equilibrium at a specified temperature and pressure. How will $(a)$ increasing the temperature at constant pressure and $(b)$ increasing the pressure at constant temperature affect the number of moles of $\mathrm{CO}_{2} ?$