Tension acting on the string as shown in figure indicates 25kg load will be lifted up by this pulley system. Hence 25kg load will move upwards, while 15kg load will move downwards.
Free body diagram of both the blocks showing the action of different forces are given in the figure.
Friction force against wall for 25kg block =fW
Friction force against the contacting surfaces between block that act on 25kg block =fB
Reaction force of fB that acts on 15kg block =fB1
Friction force against the contacting surfaces between block that act on 15kg block =fA
Reaction force on fA that acts on 25kg block =fA1
We have,
fW=fA=fA1=fB=fB1=μF
where μ is friction coefficient and F is applied force.
For equilibrium of 15kg block :T=2μF=15g
For equilibrium of 25kg block :2T=25g+3μF
Solving the above equations, we get,
F=2514g=17.5N