Hi Rapid W,

It is true that the possible values of X are 0, 1, 2, 3, and 4, but it is not true that they are all equally likely (which is what you seem to assume).

Suggestion: Write down all 24 permutations of 1234, then write down the value of X for each permutation. Then compute the average value of X.