Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the ratio between speed of the two trains is 7 : 8 . if the 2 nd train runs 400 km in 4 hrs , what is the speed of the 1 st train ?
