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

Example Input: Problem: the profits of qrs company rose 30 % from march to april , then dropped 20 % from april to may , then rose 50 % from may to june . what was the percent increase for the whole quarter , from march to june ?
Example Output: 56 %

Example Input: Problem: the difference between the place values of two nines in the numerical 62039295 is
Example Output: 8910

Example Input: Problem: from an island , it is possible to reach the mainland by either ferry p or ferry q . ferry p travels for 3 hours at 8 kilometers per hour , while ferry q takes a route that is two times longer . if ferry p is slower than ferry q by 4 kilometers per hour , how many hours longer is the journey of ferry q compared with the journey of ferry p ?
Example Output:
1