Put the following steps for calculating variance to measure the risk of an investment in their proper order, from first to last

a. Multiply each of the results you got in the previous step by its probability
b. Add up the results you got in the previous step
c. Square each of the results you got in the previous step
d. Subtract the expected value from each possible payoff
e. Compute the expected value