Suppose there are two types of tickets to a show: advance and same-day. Advance tickets cost $40 and same-day tickets cost $30. For one performance, there were 65 tickets in all, and the total amount paid for them was $2200. How many tickets of each type were sold?