The duality of the pie contest