x 1 2 3 4 5

P(X=x) 0.1 0.2 a b 0.2

Given that E(X)=3.1, calculate the value of a and b