How do muscles work in pairs?

We learnt that muscles pull rather than push and that they have to move in pairs to move our bones.

To demonstrate this, we attached two balloons to a kitchen roll tube and saw that when one muscle contracted (got shorter), the other one expanded (got longer), working as a team to move your arms and legs. The balloons represented the biceps and triceps of the arm.