Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if the simple interest on a certain amount in at 4 % rate 5 years amounted to rs . 2240 less than the principal . what was the principal ?
