find the acceleration of m1 and m2 w.r.t. to elevator.