Suggested translation:
'getting rid of pebbles' = allowing gas to expand and do work.
'adding pebbles' = compressing the gas, so work is done on it.
I'm sorry that my answer to your question is not going to be very profound. The experimenter can decide the end-points (values of p and V) of any change, isothermal or adiabatic. Points 1 and 2 and 3 can be chosen arbitrarily. If you draw an isothermal curve through point 3, and an adiabatic curve through point 1, these curves will intersect at a point '4'. The third stage (isothermal) of the cycle, starting at 3, must be stopped at point 4, as just determined. The final stage, an adiabatic compression starting at 4, will then automatically go through 1.