Answer:
12
Explanation:
For the top triangle, he has 3 options
3C1 = 3
For the middle one, he can't use the top triangle's colour, so 2 options
2C1 = 2
For the ones on sides of the middle one, 2 options each
2C1 × 2C1 = 4
3 × 2 × 2 × 2 = 24
These include all three outer ones same, so subtract 3
Also, these include 2 of the three outer ones same, so subtract:
3C2 × 3 = 9
24 - 3 - 9 = 12