To solve this problem, we need to find the time it takes for the two trains to collide.
Let's denote the distance traveled by the first train as x and the distance traveled by the second train as 150 - x.
Since distance = speed × time, we can write the following equations:
For the first train:
x = 60t
For the second train:
150 - x = 90t
Solving these two equations simultaneously will give us the time it takes for the two trains to collide.
First, let's solve for x in terms of t from the first equation:
x = 60t
Substituting this expression for x into the second equation, we get:
150 - (60t) = 90t
Simplifying this equation, we have:
150 = 150t
Dividing both sides of the equation by 150, we find:
t = 1
Therefore, it takes 1 hour for the two trains to collide.
Now, let's find the distance traveled by the fly in that 1 hour.
The fly is traveling at a constant speed of 130 mph for the entire hour. Therefore, the distance traveled by the fly is:
distance = speed × time = 130 × 1 = 130 miles
Therefore, the correct answer is D) 130 miles. The fly traveled a distance of 130 miles before the two trains collided.