Masses m and 3m are connected via a rope, which passes over…

Masses m and 3m are connected via a rope, which passes over a frictionless pulley. If this system is released from rest, what is the acceleration of the mass m? Assume the acceleration due to gravity is ay = –g. Hint: the tension in the rope has the same magnitude on both sides of the pulley.