Nine different colored flags are available to place on a pole, one beneath another. The arrangement of the colors indicates the message.
a) How many messages are possible if six flags are to be selected?
b) If a message is to be made using one of the nine different colored flags on the pole and one of three different colored lights on top of the pole, how many messages are possible?