A small company produces baseball and racquetball by the function B(x)=-6x^2+2,556x-106,878. The profit made from the racquetball products can be represented by the function R(x)=-x^2+293x-16,770. If x is the total number of products made, which function best describes P(x), the profit the company makes from these two products?