You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: a man sitting in a train which is traveling at 36 kmph observes that a goods train , traveling in opposite direction , takes 10 seconds to pass him . if the goods train is 240 m long , find its speed
Output:
50 kmph