Let's make a diagram to visualize the problem.
Let's find the distance covered by car A using the formula d = v*t.
![d_A=v\cdot t=40\cdot(mi)/(h)\cdot5h=200mi](https://img.qammunity.org/2023/formulas/mathematics/high-school/66gis14e30ksbjx2e98su80mrqnf1l54xl.png)
Car A covered 200 miles.
Subtract to obtain the distance covered by car B.
![d_B=375mi-200mi=175mi](https://img.qammunity.org/2023/formulas/mathematics/high-school/rw0ij88ouvu9ypa1p4brq38r0v70vttg8q.png)
Then, we use the formula v = d/t to find the speed of car B.
![\begin{gathered} v_B=(d_B)/(t)=(175mi)/(5h) \\ v_B=35\text{mph} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/zhdfe741o9nvtxrr9ycfmr40lbefvew85y.png)
Therefore, the speed of the other car is 35 mph.