I want to fence in a square vegetable patch The fencing for
I want to fence in a square vegetable patch. The fencing for the east and west sides costs $5 per foot, and the fencing for the north and south sides costs only $2 per foot. Find the total cost of the fencing as a function of the length of a side x (feet).
Solution
the length of a side x (feet)
The fencing for the east and west sides costs $5 per foot ------x*5 + x*5
the fencing for the north and south sides costs only $2 per foot. ----x*2 +x*2
Total cost fencing as a function of length = 5x +5x +2x +2x = 14x
