You are given a math word problem and you are supposed to apply a single mathematical operators like addition, subtraction, multiplication or division on the numbers embedded in the text to answer the following question and then only report final the numerical answer.

[Q]: The Silvergrove Public Library used a grant to purchase 2647 books . Now the library has a total of 8582 books . How many books did the library have before the grant ?
[A]: 5935


[Q]: Michelle has 2 crayons . Janet has 2 crayons . If Janet gives all of her crayons to Michelle , how many crayons will Michelle have ?
[A]: 4


[Q]: Fred has 40 baseball cards . Keith bought 22 of Fred 's baseball cards . How many baseball cards does Fred have now ?
[A]:
18