Mark decided to make Christmas presents for his classmates. He bought 10 lb of two types of candies: caramel candies for $2.80 per pound and chocolate candies for $3.50 per pound.
**Write a function f(x) that represents the total cost of the candy, where x is the weight of the less expensive candy.**