calculate the arithmetic and geometric average return of the stock market between 1927 to 2017?

the assignment is :

1) calculate the arithmetic and geometric average return of the stock market between 1927 to 2017?

2) Calculate the variance and standard deviation for the same period (1927-2017)?

3) What’s the average (arithmetic market risk premium between 1927-2017)?

4) What’s the average risk-free rate?