The position of B will remian fixed wrt to ground So A has to move 60 cm along B Lets assume planks moves x distance along leftwardSo m_A\ imes 60=m_P\ imes x 40\ imes 60=40x x=60m , so A and B will meet at the right end of plank