According to the fundamental lemma of calculus of variations, if $$ \int\limits_a^b f(x)h(x) dx = 0 $$ for an arbitrary $h(x)$, then $f(x) = 0$, for $x$ in $[a, b]$. Of course, accompanied by the usual assumptions.
Now, for the case where $$ f_1(b)h(b) + \int\limits_a^b f_2(x)h(x) dx = 0 $$ again for an arbitrary $h(x)$, can we say anything similar about $f_1(b)$ and $f_2(x)$, for $x$ in $[a, b]$?