Retained earnings are the reserves that contain the net income for this year and any other previous years. You also use the retained earnings pay your dividends. So a movement in the retained earnings reserve will look like that:
Opening Retained Earnings (from the previous year)
Plus the net income for this year (from the current year income statement)
Less dividends paid during the year
Equals Retained Earnings as at the reporting date (this year)