Quiz teams... Either Edmond's blossom... or dynamic programming