Copyright © University of Cambridge. All rights reserved.
'Pink and White' printed from https://nrich.maths.org/
The black line shows the locus of P as the white square slides around the pink square.
The locus is a square of side 16cm, and hence P moves through a distance of 64cm.