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.

[Q]: Dan bought 9 dozen eggs from the grocery store to bake some cakes . How many eggs did Dan buy ?
[A]: 108


[Q]: While on vacation , Megan took 15 pictures at the zoo and 18 at the museum . If she later deleted 31 of the pictures , how many pictures from her vacation did she still have ?
[A]: 2


[Q]: Tom had 5 books . If he sold 4 of them and used the money he earned to buy 38 new books , how many books would Tom have ?
[A]:
39