The free body diagram of the crate can be shown as,
According to free body diagram, the net force acting on the crate is,
The frictional force acting on the crate can be given as,
According to free body diagram, the normal force acting on the crate is,
Therefore, the frictional force becomes,
According to Newton's second law, the net force acting on the crate is,
Therefore, equation (1) becomes,
Thus, the net acceleration of the crate can be expressed using Newton's second law as,