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