Two particles A and B start moving simultaneously along the line joining them in the same direction with acceleration of 1 m/s and 2 m/s and speeds 3 m/s and 1 m/s respectively. Initially A is 10 m behind B. What is the minimum distance between them?