An ideal gas is taken from the state A (pressure P