A store sells two types of coffee beans, type A and type B. Type A sells for $10 per pound and type B sells for $15 per pound. A customer buys a total of 20 pounds of coffee beans and pays $240. How many pounds of type A coffee beans did the customer buy?