Horribly unclear diagram:
B---------------A---------Truck
<-240-TN <-360+TN X N->
Consider the motion of A:
X-360-T=6000a
Consider the motion of B:
T-240=4000a
Add them:
X-240-360=10,000a
X-600=10,000a
a=(X-600)/(10,000)
Sub into a previous equation...
T=4000a+240=4000(X-600)/10000 +240= (4000/10000)X -(4000*600/10000)+240=(2/5)X
I have no idea why i didn't use Latex...just silly, really...