A real estate agent earns a commission on a house she sells. Her commission is 5% on the first $500,00 of the sale price of the house. She then earns 6% of the commission for the amount above $500,00 of the sales price of the house. How much commission did the agent earn if she sold a house for $585,000 ?