Tim and David are 20 km apart. If they walk towards each other,they will meet in 2 hours. If they walk towards the same direction and Tim is behind David. Tim will catch up with David in 5 hours. Find their speeds.
P.S. Let x km/h be the speed of Tim and y km/h be that of David.