Calculate the tension in the cable connecting the two masses. Assume all surfaces are frictionless.