Patrick B. answered 07/07/19
Math and computer tutor/teacher
(X^2 + y^2)^(1/2) = D(x,y) by pythagorean theorem
where x and y are functions of time
D' = (1/2) ( x^2 + y^2) ^(-1/2) (2x dX/dt + 2y dY/dt)
= (x dX/dt + y * dY/dt) / ( x^2 + y^2)^(1/2) <--- 2 factors out and cancels 1/2
x= (150*300 + 200*400)/ sqrt( 150^2 + 200^2) = 125000 / 250 = 500
==================================================
200 - 400t = 150 - 300t
200 - 150 = -300t +400 t
50 = 100t
t = 1/2
They will collide in 1/2 hour = 30 minutes