Answer:
The number of ways are 40320.
Explanation:
Consider the provided information.
Ms. Smith keeps eight different cookbooks on a shelf in one of her kitchen cabinets. 
We need to determine the number of different ways to put eight cookbooks on the shelf.
We need to select 8 cookbooks taking 8 at a time.
So use the permutation formula: 
 
 
Substitute n=8 and simplify.

Hence, the number of ways are 40320.