Ideal gas equation derivation proportionality
I understand your concern because this is the way it is taught in South Asian schools and colleges and even general chemistry texts taught elsewhere are silent about it. They state all the individual gas laws using a proportionality sign &quot;$\propto$&quot; and magically all gas laws are combined and that becomes $R$- the universal gas constant. This is done in a single paragraph.
This is not the proper way how the ideal gas law was derived. Out of curiosity, I checked the original paper &quot; Mémoire on the Motive Power of Heat&quot; where the ideal gas law appeared in 1834!!. It is in French, but one can see the equations. Not once he used any proportionality sign but there is a lot of calculus there.
https://gallica.bnf.fr/ark:/12148/bpt6k3414331n/f34.image.r=M%C3%A9moire%20sur%20la%20puissance%20motrice%20de%20la%20chaleur
You should scroll the original paper and feel the length of it to appreciate that the ideal gas law was not derived as shown in your school / college textbooks.
You would see a formal derivation of the ideal gas law in higher classes using the kinetic theory of gases.