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

Input: Consider Input: Problem: a , b and c rents a pasture for rs . 730 . a put in 12 horses for 8 months , b 16 horses for 9 months and 18 horses for 6 months . how much should c pay ?

Output: 22

Input: Consider Input: Problem: a clock shows the time as 10 a . m . if the minute hand gains 5 minutes every hour , how many minutes will the clock gain by 6 p . m . ?

Output: 40 minute

Input: Consider Input: Problem: if x , y , and z are positive integers and 3 x = 4 y = 7 z , then the least possible value of x - y + z is
Output: 19