When taking a test it is your job to eliminate any doubt about your abilities. If we cannot write clearly about simple matters, then we should not attempt to write about complicated matters.
Let
$I = (-\frac{1}{2}, \frac{1}{2})$ and let
$f : I \rightarrow \mathbb{R}$ be given by
$$f(x) = \tan(\pi x).$$
Then
$$f(x) \rightarrow -\infty, \quad x \rightarrow -\frac{1}{2}, \quad x \in I$$
and
$$f(x) \rightarrow \infty, \quad x \rightarrow \frac{1}{2}, \quad x \in I.$$
Let
$g : \mathbb{R} \rightarrow \mathbb{R}$ be given by
$$g(x) = x + 6.$$
Then
$$ g(x) \rightarrow \frac{11}{2}, \quad x \rightarrow -\frac{1}{2}, \quad x \in I$$ and
$$ g(x) \rightarrow \frac{13}{2}, \quad x \rightarrow \frac{1}{2}, \quad x \in I.$$
It follows that
$h : I \rightarrow \mathbb{R}$ given by
$$ h(x) = f(x) - g(x)$$
satisfies
$$ h(x) \rightarrow -\infty, \quad x \rightarrow -\frac{1}{2}, \quad x \in I$$
and
$$ h(x) \rightarrow \infty, \quad x \rightarrow \frac{1}{2}, \quad x \in I.$$
In particular, there exists
$x_1, x_2 \in I$, such that
$h(x_1) < 0$ and
$h(x_2) > 0$. The function
$h$ is continuous, because
$h$ is the difference of two continuous functions. By the intermediate value property
$h$ has a zero in open interval between
$x_1$ and
$x_2$.