In a small town, the revenue generated from selling tickets to a local concert can be expressed by the equation: $R = 15n + 100$, where R is the total revenue in dollars and n is the number of tickets sold. If the total revenue generated is $370, how many tickets were sold?