I have no idea how to begin the following problem
Nautical flags are specially designed flags made up of several colors which can be used to signal from ship to ship, or ship to shore. Suppose there are 4 red, 5 blue and 8 yellow flags. How many different arrangements can be made if all the flags must be used on a vertical flag pole?