C(x) = $12,000 + ($20/piece)x. This is your cost function.
The revenue function is R(x) = ($50/item)x (but you were not asked for this).
8.1m questions
10.7m answers