Answer:

And adding the values we got:

So then the expected value for this random variable would be

Explanation:
For this case we have the following probability distribution given:
X 0 1 2 3
P(X) 0.1 0.3 0.4 0.2
And for this case the expected value with the following formula:

And replacing we have:

And adding the values we got:

So then the expected value for this random variable would be
