draw your figure

This is a right triangle where x^{2}+y^{2}=d^{2} where x is the distance traveled by the car going West and y is the distance traveled by the car going south

We have two rates dx/dt=24mi/h and dy/dt=32mi/h

We want to find the distance at 4 hours using this information at 4 hours x=(24)(4)=96mi y=(32)(4)=128mi, d=160mi.

We take the derivative of the equation to figure out the relationship between the rates

x^{2}+y^{2}=d^{2}

2x(dx/dt)+2y(dy/dt)=2d(dd/dt)

2(96)(24)+2(128)(32)=2(160)(dd/dt)

Solve for dd/dt

dd/dt=40mi/h