ABC had a net income of $8,000, $5,000, $12,000, and $10,000 over the first four years of the company's existence. If the average annual amount of dividends paid over the last four years is $3,000, what is the ending retained earnings balance?
A) $35,000.
B) $23,000.
C) $7,000.
D) $47,000.