It is known that the equation for an ideal gas is PV=nRT
So,
for gas A, the equation will be PVA=nART ...........(1)
For gas B, equation will be PVB=nBRT ............(2)
Now, on subtracting equation (1) from equation (2) we get :
PVB−PVA=nBRT−nART
P(VB−VA)=(nB−nA)RT
PΔV=ΔngRT
Also, it is known that the relation between ΔH and ΔU is as follows :
ΔH=ΔU+PΔV or, ΔH=ΔU+ΔngRT
Therefore, we can conclude that a relationship between ΔH and ΔU is ΔH=ΔU+ΔngRT