If an object with a mass of X kg sits on a frictionless table and another object with a mass of Y kg is connected to it by a wire over a frictionless pulley, how do you calculate the acceleration of the system and how do you calculate the tension of the wire?