The distance between two stations A and B is 540 km. Two trains start simultaneously from these stations on parallel tracks to cross each other. The speed of one of them is greater than the other by 5km/ hr. If the distance between these two trains after 3 hrs of their start is 165 km, what is the speed of each train?