A baseball team plays in a stadium that holds 52,000 spectators. With ticket prices at $10, the average attendance had been 5,000. When ticket prices were lowered to $8, the average attendance rose to 15,000. (a) Find the demand function (price p as a function of attendance x), assuming it to be linear.