Note that the problem is the same as for this single Atwood's Machine: Apply Newton’s second law to the three objects assuming that the acceleration of the $2m$ mass is equal in magnitude and opposite ...