Two joggers are running along a railway track at the speeds of 4 km/hr and 5 km/hr respectively in the opposite direction in which a train is travelling. The train overtakes both joggers in 10 seconds and 12 seconds respectively. What is the speed of the train in km/hr?
A. 1
B. 2
C. 3
D. 4
E. 5