f(A)= 0, g(B) = 0
f(B) > 0, g(A) > 0
Therefore h(A) < 0 and h(B) > 0
by Intermediate value theorem, there exists a point C between A and B such that h(C) = 0.