There are multiple ways to solve this problem. One way is to think of it as choosing positions for each of the flags.
Imagine there are six positions that the flags can occupy, and you have chosen positions for the red flags. How many ways can you choose positions for the blue flags, given that order does not matter?
6C2 = 15