To begin with, you and your professor evidently make the following simplification in the expression, as follows:
$$\frac{2\log_2(n)}{2n} = \frac{\log_2(n)}{n}.$$
Now, what does it mean to divide by $n,$ as in this formula?
Answer: it is multiplication by $\frac1n.$
So really you're just looking at two quantities, $\log_2(n)$
and $\frac1n,$ which are multiplied together.
Your analysis of the expression is perfectly OK. You recognize that it is
actually $\frac1n \cdot \log_2(n),$
and you then replace $\log_2(n)$ by a known equal quantity.
But that is only one way to describe the change in base.
You can just as well write
$$
\frac{\log_2(n)}{n} = \log_2(n) \cdot \frac1n =
\frac{1}{\ln(2)} \cdot \ln(n) \cdot \frac1n,
$$
which you can then rewrite to get your professor's expression or
something like yours.
But this is just an example of a more general observation, which is that
$$ a \cdot (k\cdot x) = k \cdot (a\cdot x). $$
That is, if we have some product of quantities, such as $a\cdot y,$
and we want to use $x$ instead of $y$ in this formula,
where $y = k\cdot x,$
we can either substitute $k\cdot x$ where $y$ appeared in the original product, or we can substitute $x$ for $y$ and then multiply the entire product by $k.$
The first way says that $a\cdot y = a \cdot (k\cdot x),$
while the second way says that $a\cdot y = k \cdot (a\cdot x).$
Once you understand why this is true, you may find it is sometimes convenient to make the substitution in the second way rather than the first way. If you do this often enough, it may become almost second nature to do this.
So it may be that your professor sees $\frac{\log_2(n)}{n}$ as a product involving $\log_2(n).$
Then, knowing that
$$ \log_2(n) = \frac{1}{\ln(2)} \cdot \ln(n), $$
your professor may have used the "second way" of changing a product with $\log_2(n)$ into a product with $\ln(n),$ that is,
$$
\frac1n \cdot \log_2(n) = \frac{1}{\ln(2)} \cdot \left( \frac1n \cdot \ln(n) \right).
$$
That is just a guess; we cannot read your professors mind.
But the fact that the two expressions (your answer and your professor's) are exactly the same quantity in every possible case should give you some assurance that either expression is a correct rewriting of the original expression.