Given a math word problem, answer the following question. You might need to apply addition or subtraction mathematical operators on the numbers embedded in the text to answer the question and then only report the final numerical answer.
--------
Question: the last place that he went to was the city animal shelter . there he donated some money to make sure the dogs and cats there are being taken care of . if there are 645 cats and 567 dogs there how many animals are there in the shelter ?

Answer: 1212

Question: olivia had 11 quarters . if she spent 4 of them buying a soda how many coins did she have left ?

Answer: 7

Question: there are 95 pretzels in a bowl . john ate 28 pretzels . alan ate 9 fewer pretzels than john . marcus ate 12 more pretzels than john . how many pretzels did marcus eat ?

Answer:
40