find the acceleration of block A and B.