Try to find patterns that allow you to predict colors that will appear in rows of dots. Each row is produced from the one above it, following simple rules.
Assuming we have dots of 3 colors – e.g. blue, red, and yellow – these rules are illustrated in the attached images.