1.
Suppose that $f(x)$ is (Riemann) integrable on $[a,b]$ and $F^{'}(x)=f(x)$ for all $x\in[a,b]$,then there is a number $\color{red}{\xi\in(a,b)}$ such that $$\int_{a}^{b}f(x)dx=f(\xi)(b-a)$$
2.
I generalize the above statement which is ture to the following version:
Suppose that $f(x)$ and $g(x)$ are (Riemann)integrable on $[a,b]$ with $g(x)\geq 0$ for all $x\in[a,b]$ and $F$is a primitive function of $f$ on $[a,b]$ ,then there is a number $\color{red}{\xi\in(a,b)}$ such that $$\int_{a}^{b}f(x)g(x)dx=f(\xi)\int_{a}^{b}g(x)dx$$
3.
I need to proof the generalisation is ture,or give some counterexamples to disprove it .
From the First mean value theorem for definite integrals,we have $$\int_{a}^{b}f(x)g(x)dx=\mu\int_{a}^{b}g(x)dx,\quad \inf_{x\in[a,b]}\{f(x)\}\leq \mu\leq \sup_{x\in[a,b]}\{f(x)\}.$$ If $$\inf_{x\in[a,b]}\{f(x)\}< \mu <\sup_{x\in[a,b]}\{f(x)\},$$ Darboux's theorem tells us there is a $\xi\in(a,b)$ such that $f(\xi)=\mu.$
If $$\mu=\inf_{x\in[a,b]}\{f(x)\}\quad \text{or}\quad \mu=\sup_{x\in[a,b]}\{f(x)\},$$
is there also a $\xi\in(a,b)$ such that $f(\xi)=\mu ?$
The first result is nothing but Langrange mean value theorem applied to anti-derivative $F$ of $f$. To get to your generalization we must assume the existence of anti-derivative of $fg$ and $g$ and apply Cauchy Mean Value Theorem on $F$ and $G$ where $F'=fg, G'=g$. I am not sure if the result holds without the existence of anti-derivatives involved.