find the acceleration of masses m(1)