If the blocks A and B are moving towards each other with accelerations a and b as shown in Fig. 6.310