Application of Derivatives ( Optimization )

A real estate developer estimates that if 60 luxury houses are built, the average profit will be $47,500 per house. The average profit will decrease by $500 per house for each additional house built. How many houses should the developer build to maximize total profit?