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.

Q: vanessa had to complete 3 pages of homework . each page had 4 problems on it . how many problems did she have to complete total ?

A: 12
****
Q: matt and his friends were thinking of making christmas decors for the clubhouse in their neighborhood . they are to repaint 350 balls in 10 different colors . if they painted an equal number of balls for every color how many balls are there for each color ?

A: 35
****
Q: a group of 8 friends were dressing as pirates for halloween . if each costume cost 5 dollars how much did they spend ?

A:
40
****