The cost and revenue functions are given to be:
[tex]\begin{gathered} C=50x+400 \\ R=100x-0.5x^2 \end{gathered}[/tex]Recall that profit is revenue minus cost. If the profit is $400, we have that:
[tex]R-C=400[/tex]Therefore, we have:
[tex]100x-0.5x^2-50x-400=400[/tex]Rearranging, we have the equation to be:
[tex]-0.5x^2+50x-800=0[/tex]Solving the quadratic equation using the quadratic formula, we have:
[tex]\begin{gathered} x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \\ a=-0.5,b=50,c=-800 \\ \therefore \\ x=\frac{-50\pm\sqrt{50^2-2(-0.5\times-800)}}{2\times-0.5} \end{gathered}[/tex]Therefore, we can calculate the values of x to be:
[tex]x=20,x=80[/tex]Hence, the two values of x are 20 and 80.