Sorry but thats not the answer at the back of the book,
it says X can only take values of 0,1,2
and the corresponding Pr(X=x) values are 0.49, 0.42, 0.09 respectively
Oh shoot, I read the question wrong - very sorry about that! Let's try this again:
X represents the amount of red balls drawn, and you're going to draw two random balls with replacement. So, you could either draw two balls that aren't red, one ball that is red, or two that are red. So, X can be 0, 1 or 2 - that's part a done.
Now, you know what the table should look like, so instead I'll focus on the probabilities. If you've drawn no reds, you've either drawn two whites, two blues, or one white and one blue, so you get:
 = Pr(WW) + Pr(BB) + Pr(WB) + Pr(BW) = 1/4 +1/10 + 1/10 + 1/25 = 0.49)
For one red, you've either drawn one red and one blue, or one red and one white, so you get:
 = Pr(RW) + Pr(WR) + Pr(RB) + Pr(BR) = 3/20 + 3/20 + 3/50 + 3/50 = 0.42)
Finally, for two reds, it's really easy - you must have drawn two reds, so you get:
 = Pr(RR) = 9/100 = 0.09)
Once again, sorry for the mix-up. n.n;