Given that,
Mass m=5kg
Mass M=25kg
Coefficient μ=0.4
Let F be the force which is required to hold m on M
F=(m+M)a
a=F(m+M)
Now, the frictional force on m will be opposed by the pseudo force felt by it
Pseudo force on m=m×acceleration of (m+M)
ma=μN
ma=μmg
m(Fm+M)=μmg
F=μg(m+M)
F=0.4×10(5+25)
F=120N
Hence, the minimum force is 120 N