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

Ex Input:
Problem: when positive integer n is divided by positive integer p , the quotient is 18 , with a remainder of 7 . when n is divided by ( p + 3 ) , the quotient is 15 and the remainder is 1 . what is the value of n ?

Ex Output:
20

Ex Input:
Problem: if x , y , and z are positive integers , and 3 x = 5 y = 6 z , then the least possible value of x + y + z is

Ex Output:
21

Ex Input:
Problem: jerome anticipated that the webweb . com stock price would fall and sold all his webweb . com stocks for $ 5 per stock . he paid $ 10,000 tax on the revenue . a week later , jerome became convinced that the webweb . com stock price would rise , and he used the money that he had gotten from selling the webweb . com stocks to purchase them again , this time at $ 6 per stock . if jerome ended up having 4000 webweb . com stocks fewer than the number he had before selling them , how many webweb . com stocks did he have originally ?

Ex Output:
14,000