A​ company's balance of retained earnings on January 1 was $ 20 million. During the​ year, sales revenue was $ 70 ​million, while expenses totaled $ 30 million. The company declared and paid $ 6 million in cash dividends during the year. What was the balance of retained earnings at the end of the​ year?