You are given a math word problem and you are supposed to make use of mathematical concepts like probability, combinatorics, linear equations, sequences/series, or simple operators like addition, subtraction, division, or multiplication to answer the given question. Choose the best option from the 5 given options and report that option.

Example Input: Question: Two pipes A&B can fill a tank in 24 min and 32 min respectively. If both the pipes are opened simultaneously, after how much time B should be closed so that the tank is full in 18 min.

 Option A: 8 min

 Option B: 3 min

 Option C: 21 min

 Option D: 23 min

 Option E: 24 min
Example Output: Option A

Example Input: Question: Read the following three equations:
5 ~ 4 ~ 3 ~ 9 = 4215
6 ~ 9 ~ 2 ~ 6 = 3816
4 ~ 7 ~ 3 ~ 3 = 1122
Now based on the rule that has been used, solve the following equation:
4 ~ 2 ~ 7 ~ 4 = ____

 Option A: 1416

 Option B: 2910

 Option C: 2940

 Option D: 3749

 Option E: 4470
Example Output: Option A

Example Input: Question: A man counted his animals, 80 heads and 240 legs (ducks and goats). how many goats are there?

 Option A: 30

 Option B: 40

 Option C: 50

 Option D: 60

 Option E: 70
Example Output:
Option B