Two oil tanks,X and Y, have the same capacity. The amount of oil in tank X is 1/2 of its capacity, and the amount of oil in tank Y is 1200 gallons less than its capacity. If there are 7800 gallons of oil in the two tanks combined, what is the capacity, in gallons, of tank X?

How is it 6000?