A rectangular area of 60 m2 has a wall as one of its sides. The 2 sides perpendicular to the wall are made of fencing that costs $6/m. The side parallel to the wall is made of decorative fencing that costs $8/m.
a. Express the cost of fencing as a function of the length x of a side perpendicular to the wall.