In a table, there are 3 rows with 3 square in each row.
Mary wishes to fill some colors into the blocks.
Now only red, blue and green colors are available, find the number of ways to fill the table if no adjacent blocks are filled with the same color.
Thanks.