A baseball team plays in a stadium that holds 64000 spectators. With the ticket price at $12 the average attendance has been 29000. When the price dropped to $9, the average attendance rose to 32000. Assume that attendance is linearly related to ticket price.

Let p\displaystyle {p} be the ticket price in dollars. Let Q\displaystyle {Q} be the attendance function. Determine Q\displaystyle {Q} as a function of p\displaystyle {p}.

Q(p)=\displaystyle {Q}{\left({p}\right)}=