We know, for the mixture, N2 and CO2 (being regarded as ideal gasses, their mixture too behaves like an ideal gas)
pV = vRT, so p0V = vRT
where, v is the total number of moles of the gases (mixture) present and V is the volume of the vessel. If v1 and v2 are number of moles of N2 and CO2 respectively present in the mixture, then
v = v1 + v2
Now number of moles of N2 and CO2 is, by definition given by