Suppose that there are two types of tickets to a show: advance and same-day. The combined cost of one advance ticket and one same-day ticket is $50 . For one performance, 20 advance tickets and 40 same-day tickets were sold. The total amount paid for the tickets was $1700 . What was the price of each kind of ticket?