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