Answer:
A coma is placed where there is a pause in a sentence, or a list of things. Therefor the commas will be placed as shown.
I pledge allegiance to the red, white, and blue flag.
My brother slowly picked up the spooky, wooden box with gold, silver, and copper inlay.
Explanation:
Hope it helps! =D