Hint 1
If you add all the buckets carried over all three trips, you get this equation:
3A + 2B + 3C + 4D + 4E = 52 gallons
Since you know that A holds three gallons and B holds four, it figures that:
3C + 4D + 4E = 35 gallons
With this in mind, take a close look at the buckets carried on the first trip.

