Draw a free body diagram of m1 and another diagram of m2 on an Atwood machine. Using these diagrams, apply Newton's second law to each mass. Assume tension is the same on each mass and that they have the same acceleration. From these two equations, find the acceleration of m1 in terms of m1, m2, and g.