This seems like it should be easy, but I've spend a half day trying unsuccessfully to solve it. I have three variables a,b,c (not in a list). The values are integers, For example a=6, b=21, c=7. I also have a list of the permuted numbers 1, 2 and 3. For example, let this list be be listA={3,1,2}. ListA could be any of the other five possible permutations of 1, 2 & 3, and I don't know what listA is ahead of time other than that it contains only a permutation of the numbers 1, 2 & 3..
So I want to form a new list containing a,b,and c in the order specified by the permutation list. Thus, the desired output would be listB={c,a,b}={7,6,21}. I've tried a lot of ways and nothing worked, probably because i was not using certain functions correctly, but maybe I just don't know which function to use.
I would appreciate any help you can give.
Kenneth Bures