A gas station sells regular gas for $2.20 per gallon and premium gas for $2.90 a gallon. At the end of a business day 240 gallons of gas had been sold, and receipts totaled $591. How many gallons of each type of gas had been sold?