The distance the whole vehicle travels on the bridge is 1000-x, and from the beginning of the bridge to the complete separation is1000+x.
1000+x=60v
1000-x=40v
Add the two formulas to get v = 20m/s.
Please adopt