Without loss of generality assume the one-signed function $\varphi(t)\ge 0$ for all $t$ (the negative case just changes direction of some inequalities).
It follows from the extreme value theorem that the continuous function $G$ has a finite infimum $m$ and a finite supremum $M$ on the interval $[a,b]$. From the monotonicity of the integral and the fact that $m \leq G(t) ≤ M$, it follows from the non-negativity of $\varphi(t)$ that
$$m I= \int_a^b m\varphi(t)\,dt \le \int^b_aG(t)\varphi(t) \, dt \le \int_a^b M\varphi(t)\,dt = M I,$$
where
$$I:=\int^b_a\varphi(t) \, dt$$
denotes the integral of $\varphi(t)$. Hence, if $I = 0$, then the claimed equality holds for every $x \in [a, b]$. Therefore, we may assume $I> 0$ in the following. Dividing through by $I$ we have that
$$m \le \frac1I\int^b_aG(t)\varphi(t) \, dt\le M$$
The extreme value theorem tells us more than just that the infimum and supremum of $G$ on $[a, b]$ are finite; it tells us that both are actually attained. Thus we can apply the intermediate value theorem, and conclude that the continuous function $G$ attains every value of the interval $[m, M]$, in particular there exists $x$ in $[a, b]$ such that
$$G(x) = \frac1I\int^b_aG(t)\varphi(t) \, dt$$
Taken directly from wikipedia with some slight code modifications. You should have googled first imo.