The speed of a passenger train is 18mph faster than the speed of a freight train. The passenger train travels 260 miles in the same it takes the same time it takes the freight train to travel 170 miles. Find the speed of each train.

s = f+18

260/(f+18) = 170/f
f = 34
s = 52

Let's assume the speed of the freight train is x mph.

According to the given information, the speed of the passenger train is 18 mph faster than the freight train. So, the speed of the passenger train can be represented as (x + 18) mph.

Now, let's find the time it takes for each train to travel their respective distances.

The time taken by the freight train to travel 170 miles can be calculated using the formula time = distance / speed:
Time taken by the freight train = 170 / x hours.

Since the passenger train travels at a faster speed, we can use the same formula to calculate its time. The time taken by the passenger train to travel 260 miles can be expressed as:
Time taken by the passenger train = 260 / (x + 18) hours.

According to the given information, both trains take the same time to travel their respective distances. Therefore, we can set up an equation based on this:

170 / x = 260 / (x + 18)

To solve for x, we can cross-multiply:

170(x + 18) = 260x

170x + 3060 = 260x

3060 = 260x - 170x

3060 = 90x

Dividing both sides by 90:

x = 3060 / 90

x = 34

Therefore, the speed of the freight train is 34 mph.

Using this value, we can find the speed of the passenger train:

Speed of the passenger train = 34 + 18 = 52 mph.

So, the speed of the freight train is 34 mph and the speed of the passenger train is 52 mph.

To find the speed of each train, let's set up variables to represent their speeds. Let's assume the speed of the freight train is "x" mph. According to the question, the speed of the passenger train is 18 mph faster than the speed of the freight train, so the speed of the passenger train is "x + 18" mph.

Now, we need to use the formula: Speed = Distance / Time. We are given that the passenger train travels 260 miles in the same time it takes the freight train to travel 170 miles.

For the passenger train:
Speed = Distance / Time
(x + 18) mph = 260 miles / Time

For the freight train:
Speed = Distance / Time
x mph = 170 miles / Time

Since both trains take the same time, we can set the Time for both equations equal to each other:
260 miles / Time = 170 miles / Time

Now, let's solve this equation:
260 miles / Time = 170 miles / Time

To simplify the equation, we can cross-multiply:
260 miles * Time = 170 miles * Time

This gives us:
260 Time = 170 Time

Now, we divide both sides of the equation by Time to isolate the variables:
260 = 170

This equation is not possible because it results in a contradiction. Therefore, there must be an error in the problem statement. Please double-check the given information and provide the correct values for distances or time.