During the process AB of an ideal gas
Work done on the gas is zero
Density of the gas is constant
Slope of line AB from the T-axis is inversely proportional to the number of moles the gas
Slope of line AB from the T-axis is directly proportional to the number of moles the gas
PV=nRT ⇒P=nRVT
It is constant volume process (isochoric) , so both work done and density will not change and slope is (nRV), so it is proportional to number of moles.