It definitely relates to matching the letters and the numbers, but I don't know what the stack of 4 is, or what you're supposed to do when there isn't a direct match.
the patterns aswell, can't figure out what they mean