A solution to the Supermarket Technical Problem