So you want to find an interval around $y_0$ that $g$ maps into a given interval about $g(y_0)=x_0$. The monotonicity of $g$ means that $g$ maps the interval $(y_0-\delta,y_0+\delta)$ into the interval $(g(y_0-\delta),g(y_0+\delta))$. So we just need to find a $\delta$ such that $g(y_0-\delta)>g(y_0)-\epsilon=x_0-\epsilon$ and $g(y_0+\delta)<g(y_0)+\epsilon=x_0+\epsilon$.
Now since $f$ is monotonous, these are equivalent to $y_0-\delta=f(g(y_0-\delta))>f(x_0-\epsilon)$ and analogously $y_0+\delta<f(x_0+\epsilon)$.