Match patterns

This task is about finding patterns and writing rules.
Fill in the boxes and complete the rule for each pattern below. The first one has been done for you.