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

Example Input: Problem: a “ palindromic integer ” is an integer that remains the same when its digits are reversed . so , for example , 43334 and 516615 are both examples of palindromic integers . how many 6 - digit palindromic integers are both even and greater than 500000 ?
Example Output: 200

Example Input: Problem: joan took out a mortgage from hel local bank . each monthly mortgage payment she makes must be triple the amount of the previous month ' s payment . if her first payment is $ 100 , and the total amount she must pay back is $ 914800 , how many months will it take joan to pay back her mortgage ?
Example Output: 9

Example Input: Problem: if 40 % of a number is equal to two - third of another number , what is the ratio of first number to the second number .
Example Output:
5 : 3