Hi Siddharth
You must have done some calculation blunder. I am getting B = 20/3 m/s i.e. time taken by B to travel 1km = 1000*(3/20) = 150s.