$$ \begin{aligned} 6n+1 &= 5n+7&& \text{move the $ \color{blue}{ 5n } $ to the left side and $ \color{blue}{ 1 }$ to the right} \\[1 em]6n-5n &= 7-1&& \text{simplify left and right hand side} \\[1 em]n &= 6&& \\[1 em]n &= 6&& \\[1 em] \end{aligned} $$