A high school drama club is selling tickets for a fundraiser event. Based on data from past events, the number of tickets sold can be modeled by a linear function Q(x) = −40x + 640, where x is the price, in dollars, of each ticket. The revenue R can be determined by multiplying the ticket price x by the number of tickets sold. Write a quadratic function R that correctly represents this model.