To find the cost we first need to know how many feet of fence we need. To do this we add all the lengths of the sides:
Now, since we can only buy whole numbers of feet we need to buy 21 feets of fence, then the total cost is:
Therefore the cost will be $12.39