A movie theater has been charging $10.00 per person and selling about 500 tickets on a typical weeknight. After surveying their
customers, the theater management estimates that for every 50 cents that they lower the price, the number of moviegoers will increase by 50 per night. Find the demand function. (Let x represent the number of tickets sold and p represent the price.)