A baseball team plays in a stadium that holds 59000 spectators. With ticket prices at $10, the average attendance had been 5000. When ticket prices were lowered to $8, the average attendance rose to 15000.
a. Find the demand function (price p as a function of attendance x), assuming it to be linear.
b. How should ticket prices be set to maximize revenue? (round answer to nearest cent)