Let c1 be a cluster point of A⊂R and c2 be a cluster point of B⊂R. Suppose f:A→B and g:B→R are functions such that f(x)→c2 as x→c1 and g(y)→L as y→c2. If c2∈B, also suppose that g(c2)=L. Let h(x):=g(f(x)) and show h(x)→L as x→c1. Hint: Note that f(x) could equal c2 for many x∈A, see also Exercise 3.1.14.