A man travels 400 km partly by train and partly by car. If he covers half the distance by train and the rest by car, it takes him 4 hours 30 minutes. But if he travels 100km by train and rest by car, he takes 15 minutes longer. Find the speed of the train and that of the car.