Boyle's law says that at constant temperature, pressure and volume vary inversely, P * V = constant, so squeezing the gas raises the pressure. It is the ideal-gas law with temperature held fixed. The exact trade-off holds only for a fixed amount of ideal gas in equilibrium; real gases show nonideal behavior at high density, and leaks, finite response time, and sensor calibration add uncertainty.
At fixed temperature, pressure times volume stays constant for this ideal gas model. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Start at fixed temperature
At the first state, pressure 2 pascals times volume 6 cubic meters gives 12 joules.
piVi=2Pa⋅6m3=12J
Increase pressure and reduce volume
At the second state, pressure is 4 pascals and volume is 3 cubic meters.
pfVf=4Pa⋅3m3
The product stays constant
The second product is also 12 joules, so higher pressure pairs with lower volume.
piVi=pfVf=12J
Several rows keep the same product
The diagram draws the first and third rows. At fixed temperature, larger pressure pairs with smaller volume so the product remains the same.