find the acceleration of B