A train 300 m long overtook a man walking along the line in the same direction of the rate of 4 km an hour and passed him in 30 second. The train reached the station in 15 minutes after it has passed the man. In what time did the man reach the station?