Data:
In 2 1/14 x hours traveled in a speed of 140 miles per hous
In 3 hours traveled in a sped of (2x-3) miles per hour
The given data is the speed of the train and the time. The next formula is the general equation for the speed:

s is the speed, d is the distanc and t is the time. As you need to find the distance you can solve this equation for d:

In the first part:

Then, the distance in this first part is:

Second part:

The distance in the seond part is:

Then, the total distance traveled is the sum of the distance in first and second part:
