A painter is mixing two types of paint, Type A and Type B, each containing a certain percentage of pigment. Type A paint is 30% pigment by volume, and Type B paint is 20% pigment by volume. The painter combines 12 gallons of Type A paint with 18 gallons of Type B paint to create a new mixture. What is the total number of gallons of pigment in the new mixture?