Let walls be A, B, C, D (forming a closed loop). Since no two adjacent walls can have the same colour:
- Wall A: 3 choices
- Wall B: 2 choices (not same as A)
- Wall C: 2 choices (not same as B)
- Wall D: Not same as both C and A, still 2 choices possible
So, total ways = \(3 \times 2 \times 2 \times 2 = 24\)