An agent leased a building for 15 years at an annual rent of $24,000. The agent will receive a commission of 10 percent of the first five years' rent, 5 percent of the rent for eath of the next three years and 2 percent for the remaining years. What is the agent's total commission?