The task is to generate the correct answer for a given math problem.

Ex Input:
Problem: calculate the share of z , if rs . 3720 is divided among x , y and z in the ratio 7 : 8 : 11 ?

Ex Output:
1574.1


Ex Input:
Problem: in a certain country 1 / 5 of 8 = 4 . assuming the same proportion , what would be the value of 1 / 4 of 16 ?

Ex Output:
10


Ex Input:
Problem: pipe a fills a tank of capacity 800 liters at the rate of 40 liters a minute . another pipe b fills the same tank at the rate of 30 liters a minute . a pipe at the bottom of the tank drains the tank at the rate of 20 liters a minute . if pipe a is kept open for a minute and then closed and pipe b is open for a minute and then closed and then pipe c is open for a minute and then closed and the cycle is repeated , when will the tank be full ?

Ex Output:

48 minutes