The Mathematics of the Shops