Fill the 4 gal bucket and empty it into the 7 gal bucket.
Fill the 4 gal bucket and then fill the 7 gal bucket from the 4 gal.
This leaves 1 Gallon in the 4 gallon bucket.
Empty the 7 gallon bucket and pour the gallon from the 4 gal lbucket into it.
Fill the 4 gal bucket and pour it into the 7 gal bucket.
You then have 5 gallons in the 7 gallon bucket.
Aggie80