The probability distribution of x is
x0123P(x)0.2kk2k
Find the value of k
0.2
0.3
0.4
0.1
the sum of probabilities=1
So, k=0.2