At fixed temperature, pressure times volume stays constant for this ideal gas model.

highlighted = computed this step

Start at fixed temperature

At the first state, pressure 2 pascals times volume 6 cubic meters gives 12 joules.

piVi=2 Pa6 m3=12 Jp_iV_i = 2\ \text{Pa}\cdot 6\ \text{m}^{3} = 12\ \text{J}
Boyle comparisonBoth piston states share one volume scale.6 m^32 Pa 300 Kstate3 m^34 Pa 300 Kstate

Increase pressure and reduce volume

At the second state, pressure is 4 pascals and volume is 3 cubic meters.

pfVf=4 Pa3 m3p_fV_f = 4\ \text{Pa}\cdot 3\ \text{m}^{3}

The product stays constant

The second product is also 12 joules, so higher pressure pairs with lower volume.

piVi=pfVf=12 Jp_iV_i = p_fV_f = 12\ \text{J}
Boyle comparisonBoth piston states share one volume scale.6 m^32 Pa 300 Kstate3 m^34 Pa 300 Kstate