A dairy needs 332 gallons of milk containing 6% butterfat. How many gallons each of milk containing 7% butterfat and milk containing 3% butterfat must be used to obtain the desired 332 gallons?