To solve this question, we have to know which force is applied to which object.
In this case, the force is frictional, which means it's a force from the surface of the table. The property of the surface is acting upon the book, preventing to slide.
Hence, it's table-on-book.