A flag or a star pattern can be on each of three colours of paper so he can make 2×3=6 kinds of invitations:
red star, red flag, white star, white flag, blue star, blue flag.
So the equation is (number of possible invitations)=(number of designs)×(number of different colours).