A man travels 600 km partly by train and partly by car. If he covers 400 km by train and the rest by car, it takes him 6 hours and 30 minutes. But, if he travels 200 km by train and the rest by car, he takes half an hour longer. Find the speed of the train and that of the car.