Let A and B be the accelerations of A and B respectively, then after converting everything to metres and seconds, you have
a_b(t) = B
v_b(t) = (40/3) + Bt
x_b(t) = (40/3)t + (B/2)t^2
[40/3 m/s = 48 km/h]
a_a(t) = A
v_a(t) = (160/9) + At
x_a(t) = (160t/9) + (A/2)t^2
[160/9 m/s = 64 km/h]
Without loss of generality, I've taken the position of A and B
at t=0 to be 0.
-----
Since you know the speed of B at 3 minutes, you get the acceleration of B
v_b(180) = 96km/h = (80/3)m/s
= (40/3) + B*180
--> B = 2/27
-----
Since you know that A and B are at the same place at 3 minutes, you can also get
the acceleration of A
x_a(180) = x_b(180), so
3600 = 3200 + 16200A
--> A = 2/81 = B/3
-----
If v_a(t) = v_b(t), then
t = (480-640)/(3*(A-B))
-> t = 90 seconds
At which point the distance between them is
d = |x_b(90)-x_a(90)|
= 200 metres