You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
You are given a math word problem and you are supposed to apply multiple mathematical operators like addition, subtraction, multiplication or division on the numbers embedded in the text to answer the following question and then only report the final numerical answer.

a paper bag can hold 16 cookies . if edgar buys 292 cookies how many paper bags does he need ?
Solution: 18.25
Why? number of paper bags = 292/16 = 18.25 bags

New input: bryan took a look at his books as well . if he has 56 books in each of his 9 bookshelves how many books does he have in total ?
Solution:
504