hashTable keys hashCode

in function hashCode when the key is different so the value of best index will be different but here the different values of keys returns the same hashcode … why??

the index of bucketArray will be different but here it is said that it will return the same bestIndex?