A shopkeeper sold his entire stock of shirts and ties in a sale for $10 000. The shirts were priced at 3 for $100 and the ties $20 each. If he had sold only half the shirts and two-thirds of the ties he would have received $6000. How many of each did he sell in the sale?.