Here by ideal gas equation we have
PV = nRT
so here if
![n = (PV)/(RT)](https://img.qammunity.org/2019/formulas/physics/high-school/uhkw033i1yikcsd3juvjfty85tijc5x48s.png)
So we can say pressure , volume and temperature ratio is same then number of moles must be same
![n_1 = n_2](https://img.qammunity.org/2019/formulas/physics/high-school/bkvzrfzikekbioqaauf9zp7nxeeigyrbih.png)
for
![(P_1V_1)/(T_1) = (P_2V_2)/(T_2)](https://img.qammunity.org/2019/formulas/physics/high-school/xashk85442wfq2b5n7ac7n0ij1a1t3y1z9.png)
So number of moles is directly proportional to product of volume and pressure of the gas and inversely proportional to temperature of the gas