I have the page count set to the default 10 in my reading settings menu.

However, I use my template archive.php file for all post types, including posts and books
How can I change the loop so that when searching books it will show 30 books in the archive page instead of showing the default 10?