This question already has an answer here:
What happens in Texas Holdem when You have the same pair as another person And you also have the same kicker Is it split pot or then do you go to the next Highest kicker?
For example: (suits irrelevant) Frank A,Q Bill A,7
Franks best: 2, 2, A, Q, 6. Bill best: 2, 2, A, 7, 6.