WMA link
Permutations
Permutations[{y, 1, x}]
Elements are differentiated by their position in list, not their value.
Permutations[{a, b, b}]
Permutations[{1, 2, 3}, 2]
Permutations[{1, 2, 3}, {2}]