The container that holds the water for the football team is 23 full. After pouring out 2 gallons of water, it is 12 full. How many gallons can the container hold?