There are 2 walls that are 9 feet each and then 2 walls that are 6 feet each. Adding those up will give you 30 feet of fencing. If you need 1 gallon for every 10 feet and there are 30 feet of fencing, that would mean that you need 3 gallons of paint.