Complete the pattern in the grid.