The sequence is as follows: step on the brake until the body stops stably, shift to N, step on the foot brake (the brake is not released at this time), then shift to P, and get off.
If you are on a slope, the third step is to first pull the hand brake, then release the foot brake, and then turn off the engine to shift into P gear.