Suppose player 1 has 6h and 8d pocket cards and player 2 has 6c and 7s.

The community cards come 6s, As, 10d, 3h, 5s.

The hand for P1 is pair of sixes (6h, 6s) then As, 10d, 8d

The hand for P2 is pair of sixes (6c, 6s) then As, 10d, 7s

Does the kicker go all the way down to the 5th card?
Who wins this pot?
Thanks, Nate