Follow patterns and sorting rules

Continue a stated repeating unit, change sorting rules and check two conditions.

Related practice