The radius of each circle is 2.5cm.

The length of the rectangle contains two complete radii which is a total length of 5cm.

Therefore the remaining distance between the centres of the circles is 9 – 5 = 4cm.

As long as you know the length of the rectangle around the two circles, you will always be able to work out the distance in this way.