The distance between towns A and B is 300 km. One train departs from town A and another train departs from town B, both leaving at the same moment of time and heading towards each other. We know that one of them is 10 km/hr faster than the other. Find the speeds of both trains if 2 hours after their departure the distance between them is 40 km.