Detailed Instructions: 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.
Problem:Context: Edward spent $ 4 to buy books and $ 3 to buy pens. Now he has $ 12.

Question: How much did Edward spend on books and pens?
Solution:
7