Hi mahima.. :)
you have correctly pointed out that "x" can take only even values. But, you did mistake while finding out probabilities.
Just try to figure out the no. of ways in which you can choose the cards and then arrange the cards.
Eg: x=2 it means you need to pick 1 green card and 1 red card.
Now, No. of ways of Choosing 1 green and 1 red is 5C1*5C1
and you can arrange the cards in 5!*5!
therefore, probability that x=2 is 5C1*5C1* 5!*5! /10!
Try to do for other values of "x".
:)
:)