A middle school mathematics teacher accepts a teaching position that pays ​$20,000 per year. Each​ year, the expected raise is $500. How much total money will this teacher earn teaching middle school mathematics over the first 30 ​years?