It is given in the question that
You have already made $12 for school by selling a pie you made at a bake sale. you will earn $3 more for each additional brownie you sell.
Let the number of additional brownie is x.
Let C represents the cost function.
So C is equal to the sum of fixed cost, 12, and cost of additional x brownie.
So the required expression is
[tex]C(x) = 12+3x \\ C(x)=3x+12[/tex]