A charity fair raised $6,000 by selling 500 lottery tickets. There were two types of lottery tickets: A tickets cost $10 each, and B tickets cost $60 each. How many tickets of each type were sold?