Hasan has an annual income of $24,000. He decides to take classes on line and at night so that he can continue to work. After 3 years he gets his degree and immediately starts earning $30,000 per year. If it takes Hasan 6 years to recover his investment for his education, how much did it cost him?