e12−5x−7=123 ⇒e12−5x=123+7=130 (Add 7 to both sides) ⇒12−5x=ln(130) (Take natural logarithm on both sides) ⇒−5x=−12+ln(130) (Add -12 to both sides) ⇒5x=12−ln(130) (Multiply by -1) ⇒x=15(12−ln(130)) (Divide by 5 on both sides)
If you need, you may use a calculator to get log(130)=4.8675. Put this value to get x=1.4265.