Mark decided to make Christmas presents for his classmates. he bought 10lb of two types of candies: caramel candies for $2.80 per pound and chocolate candies for $3.50 a pound.

Write a function f(x) that represents the total cost of candy, where x is the weight of the less expensive candy

Brainliest for correct answer