Start at upper b and end at bottom r.
Find the rules for the 4 parts of each square.
The bottom 2 are "modifiers", the shapes of those might help you figure out what they do.
X should be done before the first 2 and O after.