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

Example Input: Problem: a certain elevator has a safe weight limit of 2,000 pounds . what is the greatest possible number of people who can safely ride on the elevator at one time with the average ( arithmetic mean ) weight of half the riders being 200 pounds and the average weight of the others being 230 pounds ?
Example Output: 9

Example Input: Problem: if the average of 5 x and 8 y is greater than 90 , and x is twice y , what is the least integer value of x ?
Example Output: 4

Example Input: Problem: ( 4 ! ) ^ n is a factor of 12 ! , but ( 4 ! ) ^ ( n + 1 ) is not factor of 12 ! . what is the value of n ?
Example Output:
3