According to the information the function for the profit p(x) is obtained by substracting the revenue and the costs.
[tex]p(x)=R(x)-C(x)[/tex]replace the functions into the equation
[tex]p(x)=19.3x-(314-7.7x)[/tex]distribute the negative sign
[tex]p(x)=19.3x-314+7.7x[/tex]simplify the equation
[tex]p(x)=27x-314[/tex]