Solving an exponential equation by finding common bases - Linear exponents