Cherry tomatoes are sold at the store. A 12-pack costs $3, a 16-pack costs $4, and a 24-pack costs $6. Write an equation for the function. Let t be the number of tomatoes. Let p be the price per pack.