instruction:
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 spaceship traveled 0.5 light - year from Earth to Planet X and 0.1 light - year from Planet X to Planet Y . Then it traveled 0.1 light - year from Planet Y back to Earth . How many light - years did the spaceship travel in all ?
answer:
0.7


question:
Jerry made 14 dollars mowing lawns and 31 dollars weed eating . If he only spent 5 dollar a week , how long would the money last him ?
answer:
9


question:
Roger earned 9 dollars for each lawn he mowed . If he had 14 lawns to mow , but forgot to mow 8 of them , how much money did he actually earn ?
answer:

54


