Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: find the greatest number which on dividing 6215 and 7373 , leaves a reminder of 23 and 29 respectively
