permutations 5 red flags and 3 blue flags
The number of separately identifiable permutations is given by :
8! / [5! * 3!] = 56