Kinetics of a Particle
This is the maximum possible acceleration without slip.
Now from the free body diagram of the crate + cart,
P-(M+m)g - (M+m)a = 0
P = (M+m)g +(M+m)g
=(M+m)g(+)