A refinery processes two types of crude oil, A and B. Type A has 3 kg of impurities per barrel, and type B has 5 kg of impurities per barrel. The refinery can handle up to 12,000 kg of impurities per week. If the profit is \$7 per barrel for type A and \$9 per barrel for type B, what is the maximum profit?