Ahmad has containers of two different sizes. The total capacity of 16 containers of one size is x gallons, and the total capacity of 8 containers of the other size is also x gallons, and . In terms of x, what is the capacity, in gallons, of each of the larger containers?