First we need to know how many gallons the cylinder can hold, to determine this we use the rule of three:

then:

Hence the cylinder can hold 25 gallons of water.
We know that every day it leaks 2 gallons of water, using the rule of three again we have:

then:

Therefore it will take 12.5 days to fill the cylinider