A leaves at noon. At 2:00 pm, it would have traveled 2*20 = 40 knots. B leaves at 1:00pm. At 2:00 pm, it would ave traveled 15 knots.
x^2+y^2=z^2
40^2+15^2 = z^2
z = sqrt(40^2 +15^2) = 42.72
x^2+y^2 = z^2
2x dx/dt + 2y dy/dt = 2z dz/dt
x dx/dt + y dy/dt = z dz/dt
dz/dt = ( x dx/dt + y dy/dt) / z
dz/dt = ((40)(20) + (15)(15)) /42.72 = 23.99 knots/hr
https://gyazo.com/3d60156f194d433d5d26df8f835505ff