Let the maximum force is F.
When the force is applied then effective weight on the board will be Mg−F.
Total force applied on the floor is given as,
Ft=(Mg−F)+mg
The maximum friction force is given as,
Ff=μ(Mg−F+mg)
So, the maximum friction force will be equal to the horizontal pull by the string that is equal to F.
The expression can be written as,
μ(Mg−F+mg)=F
F=μ(M+m)g(1+μ)
Thus, the maximum force is μ(M+m)g(1+μ).