Solving an equation of the form logba equals c