A total of 60 tickets were sold for an concert and earn the organizers $540. If the cost of each ticket is either $6 or $10, how many tickets of each type were sold?