The letters in the colored blocks are: J, W, P, B, D, C, N, M.
The letters to be matched are: n, c, m, j, b, w, d, p.
By matching the uppercase letters from the blocks to their lowercase counterparts, the correct pairings can be made.