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

Example Input: Problem: a , b and c are partners in a business . their capitals are respectively , rs . 5000 , rs . 6000 and rs . 4000 . a gets 30 % of the total profit for managing the business . the remaining profit is divided among 3 in the ratio of their capitals . in the end of the year , the profit of a is rs . 200 more than the sum of the profits of b and c . find the total profit ?
Example Output: 3000

Example Input: Problem: the average ( arithmetic mean ) of 8 numbers is 43.1 . if the sum of half of these numbers is 158.4 , what is the average of the other half ?
Example Output: 46.6

Example Input: Problem: a one - foot stick is marked in 1 / 4 and 1 / 5 portion . how many total markings will there be , including the end points ?
Example Output:
9