An investment firm has a job opening with a salary of $35,000 for the first year. During the next 39 years, there is a 5% raise each year. Using geometric sequences, find the total compensation over the 40-year period. (Round your answer to the nearest cent.)