A certain brand of razor blades comes in packages of 6, 12, and 24 blades, costing $ 2, $ 3, and $ 4 per package, respectively. A store sold 12 packages containing a total of 162 razor blades and took in $ 35. How many packages of each type were sold?