To solve this question you have to make equation of both gallon.
Gallon 1 have 130 gallons of water at the start and filled by 1/4 gallon each second. If x equal to the time in seconds, the equation of gallon 1 volume will be:
g1= 130+ 1/4x
Gallon 1 have 200 gallons of water at the start and drained by 1/ 3 gallon each second, the equation of gallon 2 volume :
g2= 200- 1/3x
When gallon 1 volume equal to gallon 2, it mean g1=g2