For general coefficients, there is no closed-form solution and you need to resort to numerical methods (Newton should be fine, but you should study the number and location of the roots first.)
By the change of variable $t=e^x$, you turn the equation into a generalized polynomial one
$$\sum_n t^{\log a_n} = b$$ which is a way to see that there is no closed-form.
Note that if all $a_n>1$, the derivative says
$$f'(x)=\sum_n\log a_n{a_n^x},$$ which is a positive expression. Then for $b>0$ there is a single solution. If $b\gg1$, a good approximation is given by the leading term,
$$x\approx\log_{a_{max}}b$$ where $a_{max}$ is the largest constant.
It is also interesting to look at the function
$$\log\left(\sum_n{a_n^x}\right),$$ which is asymptotic to $x\log a_{min}$ in the negatives and $x\log a_{max}$ in the positives, hence the graph is made of two smoothly connected half-lines.
For the given example:
