Given the task definition and input, reply with output. You are given a math word problem and you are supposed to make use of mathematical concepts like probability, combinatorics, linear equations, sequences/series, or simple operators like addition, subtraction, division, or multiplication to answer the given question. Choose the best option from the 5 given options and report that option.

Question: In a certain city each of 17 Girl Scout troops is represented by a colored flag. Each flag consists of either a single color or a pair of two different colors. If each troop has a different flag, what is the minimum number of colors needed for the flags. (Assume that the order of colors in a pair on a flag does not matter.)

Option A: 5

Option B: 10

Option C: 6

Option D: 20

Option E: 40
Option C