I would assume for arithmetic you would simply add up the dividends and divide by the number of years in which dividends were paid.

As for the geometric return of the stock you take the percentage gain for each year, multiply them, and take that amount to the power of , all minus 1.

Really great explanation here, What is the difference between arithmetic and geometric averages?