Two masses A and B lie on a frictionless table as shown below. They are attached to either length of a light rope which passes around a frictionless pulley of negligible mass. The pulley is attached to a light string connected to a hanging mass C via a second frictionless pulley. Find the acceleration of each mass.