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.
--------
Question: A restaurant served 5 cakes during lunch and 6 during dinner today . The restaurant served 3 cakes yesterday . How many cakes were served in total ?

Answer: 14

Question: At lunch a waiter had 7 customers and 4 of them did n't leave a tip . If he got $ 9 each from the ones who did tip , how much money did he earn ?

Answer: 27

Question: Nancy and her mom were picking carrots from their garden . Nancy picked 38 and her mother picked 47 . If only 71 of the carrots were good , how many bad carrots did they have ?

Answer:
14