Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: a man swims downstream 24 km and upstream 16 km taking 4 hours each time , what is the speed of the man in still water ?
