convert the number in the lower base into the number in base 10