We just started calculating limits at infinity using epsilon and delta so these might be very stupid questions.
(1) Prove that limit as $x$ goes to infinity of $\dfrac{2\sin x}{x+2}$ is $0$.
\begin{align*} |f(x)-0| &= |\frac{2\sin x}{x+2}| \\ &= |\frac{2}{x+2}| \\ &= \frac{2}{x+2} \\ &< \frac2x \end{align*} The calculations that come after this I understand but what I don't understand is why the $\sin x$ is gone just because $|\sin x|\leq 1$, and also why we have to work with a function $\frac 2x$ that is greater than our original function.
(2) Prove limit as $x$ goes to infinity of $\ln\left(\frac{x}{x+1}\right)$ is $0$ (hint: $g(t)=\ln(t)$ is continuous at $t=1$)
Here I have no clue what to do.
In your first question, the first "=" should be "$\leq$", since (as you point out) $|\sin(x)| \leq 1$.
For your second question, the hint is telling you to use the theorem that if $g(t)$ is continuous at $t=c$, and if $\lim\limits_{x \to a} f(x) = c$, then
$$ \lim_{x \to a} g(f(x)) = g \left( \lim_{x \to a} f(x) \right) $$
In this particular example, you should use this fact, along with the fact that
$$ \lim_{x \to \infty} \frac{x}{x+1} = 1 $$