Finding Q via Jensen's:
Let $f(x) = \frac{ 5 + 2x } { 1 + x } $.
Let $ g(x) = \ln \frac{ 5+2x}{1+x} $, then $ g'(x) = - \frac{3}{ 2x^2 + 7x + 5 } $ and $ g'' (x) = \frac{ 3 ( 4x + 7 ) } { (2x^2 + 7x + 5 )^2 }$.
When $ x \geq 0$, $g''(x) \geq 0$, so we may apply Jensens to conclude that
$$ \sum g(x) \geq 3 g ( \frac{1}{3} ).$$
Taking $e$ to the power of both sides, we conclude that
$$ \prod f(x) \geq f(\frac{1}{3} ) ^ 3. $$
Note: The tangent line approach is similar on $g(x)$, and it works because of the condition $ g''(x) \geq 0$.
Finding P via Step-wise smoothing
A good guess is that the maximum occurs at the extreme end (which isn't necessarily the case), which others have shown. As such, step-wise smoothing is often good approach.
Claim: When $a,b \geq 0$, $f(a) f(b) \leq f(0 ) f( a+b)$.
This follow by cross multiplying to get $ 6x^2 + 21 xy + 6y^2 \geq 0 $ which is obviously true.
Hence, $f(x)f(y) f(z) \leq f(0)f(x+y)f(z) \leq f(0) f(0) f(x+y+z) = \frac{175}{2}$.
It remains to show that this is indeed the supremum, which you can verify with $ x = y \rightarrow 0^+$.
Note: Karamata's inequality (which is a generalization of Jensen's) also gives this result directly. In fact, the above approach is a specific case of Karamata (but doesn't require as much power).