Official solution
Let Re (z) = x, then
\[{{2(x + 10i) - n} \over {2(x + 10i) + n}} = 2i - 1\]
\[ \Rightarrow \left( {2x - n} \right) + 20i = - \left( {2x + n} \right) - 40 - 20i + 2ni\]
\[ \Rightarrow 2x - n = 2x - n - 40\]
\& 20 = -20 + 2n \[ \Rightarrow \] x = -10 \& n = 20