In a device known as an Atwood machine, two masses m1=10kg and m2=20kg are connected by rope over a frictionless pulley. What is the acceleration of each mass if the rope is massless?