Definition: You are given a math word problem and you are supposed to apply an addition mathematical operator on the numbers embedded in the text to answer the following question and then only report the final numerical answer.
Input: Context: Lucy went to the grocery store. She bought 2 packs of cookie and 12 packs of cake. In the end she had 56 amount of change remaining.

Question: How many packs of groceries did she buy in all?
Output:
14