Answer :
the friction force is always opposed to the movement direction. Here, without friction, your book would move down. As the book is immobile the friction force is pointed upwards and it perfectly counteracts gravity (value m*g).
Any questions?
Any questions?