We have a 2x2 grid and 10 different colours. I want to paint such that adjacent grids are painted with different colors. How many ways can i do this?
I labeled the grids as:
A B
C D
Scenario 1: B and C different colors.
1)A has 10 colors to choose from.
2)B has 9 colors to choose from
3)C has 8 colors to choose from
4)D has 8 colors to choose from
Total ways: 10*9*8*8 = 5760 ways
Scenario 2: B and C have same colors.
1)A has 10 colors to choose from.
2)B has 9 colors to choose from
3)C has 9 colors to choose from
4)D has 9 colors to choose from
Total ways: 10*9*9*9 = 7290 ways
Total ways = 7290 + 5760 = 13050 ways.
Did i do it correctly?