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