单项选择题

If in an experiment the probabilities of obtaining the values a1,a2,a3,a4, and a5are p1,P2,P3,P4 and P5,respectively,then the expected value is defined as a1p1+a2p2+a3p3+a4p4+a5p5.For the values and their corresponding probabilities in the table above,what is the expected value()

A. 350
B. 320
C. 300
D. 270
E. 250