Answer:
63 mph and 53 mph
Step-by-step explanation:
We can represent the situation as:
Therefore, if we call x the speed of the train that travels east, (x-10) is the speed of the train that travels west.
Then, after 1.5 hours, they are at a distance of 171 miles and they are getting apart at a speed equal to the sum of both speeds, so we can write the following equation:

So, solving for x, we get:

Therefore, the speed of the first train was 63 mph and the speed of the second train was 10 mph slower, so it was 53 mph.