You say that $\lim_{x\to\infty} a^x = 0$, however this is only true if $|a| < 1$, and hence not true for $2^x$ or $e^x$.
With that said, you can solve both of these limits if you know that exponentials eventually dominate any polynomial (if the base of the exponential is larger than 1). Let $p$ be a polynomial and $a>1$, then
$$\lim\limits_{x\to\infty} \frac{p(x)}{a^x} = 0 \quad\quad \lim\limits_{x\to\infty} \frac{a^x}{p(x)} = \pm \infty,$$
where the sign in the last limit is the same as the sign of the term with the highest degree in the polynomial.
You can now solve the limits, remembering that both $2^x$ and $e^x$ are exponentials with base larger than 1, i.e. $2>1$ and $e>1$, and $x$ and $x^{50}$ are polynomials.