A man travels 370km partly by train and partly by car. If he covers 250km by train and the rest by car, it takes him 4 hours. But, if he travels 130 km by train and the rest by car, he takes 18 minutes longer. Find the speed of the train and car respectively.