Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: a man can row 24 kmph in still water . it takes him thrice as long to row up as to row down the river . find the rate of the stream ?
Output:
12