If we go back to the defenition of logs, we can find this solution quickly.
What you're saying when you say ㏒₂(5x+7) = 5 is that
2⁵ = 5x+7
So
32 = 5x+7
25 = 5x
x = 5