Gracie has made 2 gallons o punch that contains 50% juice. After Gracie pours out some of her mixture and replaced with an equal amount of pure 100% juice, she has 2 gallons of punch that contains 65% juice. How many gallons of the original mixture did Gracie pour out? Express your answer as a common fraction.