In 5 hours passenger train travelled the distance =5×30=150km. Relative velocity of mail train with respect to passenger train =45–30=15km./hr. Since, required time taken =
150
15
=10hr Hence, second train will overtake the first 10 hrs after the second train starts.