Objects joined by strings

Objects tied by an ideal string share one acceleration, so treating them first as one system gives the acceleration and then one object alone gives the tension.

From AP Physics 1.