You can use the fact that the time taken for some object to travel is expressed as the ratio of the distance traveled to the average speed of the object.
The rational function that models the time y (in hours ) for the given condition is [tex]y = \dfrac{d}{x}[/tex]
We have this below shown relation between them
[tex]\text{Average speed} = \dfrac{\text{Distance traveled}}{\text{Total time taken to travel that distance}}\\\\or\\\\\text{Total time taken to travel that distance}= \dfrac{\text{Distance traveled}}{\text{Average speed} }[/tex]
Since we're given that the average speed of the train during travel from first city to second is x miles per hour, and let the distance between both the cities be given by d miles , then we have:
[tex]\text{Time taken} = \dfrac{d}{\text{average speed}} \\\\y = \dfrac{d}{x}[/tex]
Thus,
The rational function that models the time y (in hours ) for the given condition is [tex]y = \dfrac{d}{x}[/tex]
Learn more about rational functions here:
https://brainly.com/question/15324782