Comparing two numbers with different bases | Math Trick