This is a result of the fact that in the complex numbers, for any integer $n$,
$$
e^{2 \pi i n} = 1
$$
In particular, this means that
when you take a logarithm in the complex numbers, you get multiple possible answers--you have to add some multiple of $2\pi i$. So to solve the equation, "$a^x = b$" for $x$, when $a$ and $b$ are real, you write
$$
\ln(a^x) = \ln b + 2 \pi i n
$$
$$
x \ln(a) = \ln b + 2 \pi i n
$$
$$
x = \frac{\ln b + 2 \pi i n}{\ln a}
$$
Your equation in particular is $7^{2x} = 2^x$, which is the same as $49^x = 2^x$, which is the same as $(49/2)^x = 1$. So the above formula gives the answer as
$$
x = \frac{\ln 1 + 2 \pi i n}{\ln(49/2)} = \frac{2 \pi i n}{2 \ln 7 - \ln 2}.
$$
(You will notice the denominator has the opposite sign in your question, but this does not matter, because $n$ ranges over positive and negative integers.)