The factors shown in the tiles are:
a) x, 1, 1
This sum to x + 2
b) x, x, 1
This sum up to 2x + 1
So the factors of given polynomial are (x+2) and (2x+1). So the polynomial can be written as product of these two factors as (x+2)(2x+1).
Thus the option D gives the correct answer.