You calculated the log values on the right hand side, so why can't you do it on the left hand side? Also, you never took the log of the seven in the first line. BTW, you cannot take the log of a negative number...

Calculate the value of those logs, and then solve for x.