Three flags each of different colours are available for a military exercise, Using these flags different codes can be generated by waving I. Single flag of different colours II. Any two flags in a different sequence of colours. III. three flags in a different sequence of colours. The maximum number of codes that can be generated is.

Three flags each of different colours are available for a military exercise, Using these flags different codes can be generated by waving
I. Single flag of different colours
II. Any two flags in a different sequence of colours.
III. three flags in a different sequence of colours.
The maximum number of codes that can be generated is.

A. 6
B. 9
C. 15
D. 18
Explanation:
This type of question becomes very easy when we assume three colour are red(R) blue(B) and Green(G).
We can choose any colour.
Now according to the statement 1 i.e.., codes can be generated by waving single flag of different colours, then number of ways are three i.e.., R.B.G from statement III three flags in different sequence of colours, then number of ways are six i.e.., RBG, BGR, GBR, RGB, BRG, GRB.
Hence total number of ways by changing flag = 3+ 6 +6 = 15