The cost and revenue functions are given to be:
Recall that profit is revenue minus cost. If the profit is $400, we have that:
Therefore, we have:
Rearranging, we have the equation to be:
Solving the quadratic equation using the quadratic formula, we have:
Therefore, we can calculate the values of x to be:
Hence, the two values of x are 20 and 80.