(a) Four forces act on the book: the push F towards the wall, the normal force N of the wall away from the wall, its weight mg=10 N downward, and static friction fs of the wall upward.

Horizontally the book does not move, so N=F. Vertically, friction must hold up the weight, fs=mg=10 N. Friction can be at most μsN:
mg≤μsN=μsF⇒F≥μsmg=0.510=20 N
The least push is 20 N. The push does not hold the book up directly; it creates the normal force that makes enough friction possible.
(b) With F=15 N, N=15 N and the greatest static friction is 0.5×15=7.5 N, less than the weight of 10 N, so the book slides down. Kinetic friction then acts upward:
fk=μkN=0.4×15=6 N
a=mmg−fk=110−6=4 m s−2 downward