The garden is surrounded by two fences. One fence is around the perimeter of the garden, whereas the second fence is 2 feet from the first fence on the outside. If the material used to build the two fences is $1.20 per foot, what was the total cost of the fences?

If the garden has dimensions x and y then the perimeters are

inner: 2(x+y)
outer: 2(x+4 + y+4)
total fencing: 4(x+y+4)
total cost: 4.80(x+y+4)