A cashier has 24 bills, all of which are $10 or $20 bills. The total value of the money is $410. How many of each type of bill does the cashier have?