A theater will sell 500 tickets to a play if it charges $10 per ticket. Furthermore, every time it raises the price by one dollar, it will sell 50 fewer tickets because some people will think it is too expensive. Which of the following functions represents the number of tickets the theater will sell if it charges d dollars per ticket?