Two trains start from the same point simultaneously and in the same direction. The first train travels at 40 km/h, and the speed of the second train is 25 percent more than the speed of the first train. Thirty minutes later, a third train starts form the same point and in the same direction. It overtakes the second train 90 minutes later than it overtook the first train. What is the speed of the third train?