find the base and power of two number