Any three can be in the first position...any three in the second and any three in the last
So
3 x 3 x 3 = 27
This also implies that for any number of n different letters...nn "words" can be formed in this manner...