Think of ol' Pythagoras.

The distance between the cars at the time they are .5 and .7 from the intersection, respectively, can be found from

Just differentiate implicitly w.r.t time,

Plug in your knowns on the right side (they are all given) and solve for dD/dt