When pressure, volume, and temperature all change, the ideal-gas ratio pV over T stays constant. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Compute the first gas ratio
The first state uses pressure 2, volume 6, and temperature 300 kelvin.
TipiVi=300K2Pa⋅6m3
Compute the second gas ratio
The second state uses pressure 4, volume 4, and temperature 400 kelvin.
TfpfVf=400K4Pa⋅4m3
The combined ratio matches
Both states give one twenty fifth joule per kelvin.
TpV=251J/K
Pressure, volume, and kelvin trade off together
The diagram draws the first and third rows. The middle row shows a different pressure-volume pair at the same kelvin with the same combined ratio.