You are given 5 books and 7 bookshelves. How many ways are there to place these books on the shelves? (The order on the shelves matters.)
I want to say $7^5$ since there are 7 possible shelves and five different options to select from books that will be placed.
Could some one explain why my answer is wrong, and what the right answer is?