Given data:
The average speed of the car is
[tex]S=45\text{ miles/hour}[/tex]The distance traveled by the car is
[tex]D=90\text{ miles}[/tex]The average speed can be expressed as,
[tex]\begin{gathered} S=\frac{D}{T} \\ T=\frac{D}{S} \end{gathered}[/tex]Here, T is the time taken by the car.
Substituting the values in the above equation, we get:
[tex]\begin{gathered} T=\frac{90\text{ miles}}{45\text{ miles/hour}} \\ =2\text{ hours} \end{gathered}[/tex]Thus, the time taken by the car is 2 hours, and option (B) is correct.