In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5287, 'K', 7871, 'C', 4001, 'V', 381, 4237, 'D', 1399, 'b', 'n', 'E', '6775', 'z', 'Y', '5479', 'i', '5005', '2341', '5367', '3567', 'u', '6927', 'r', '8789', '6061', 'Z', 'y', 'T', 'D', 'V', 'p'], [2497, 'G', 6399, 6519, 3467, 'e', 'E', '6775', 'z', 'Y', '5479', 'i', '5005', '2341', '5367', '3567', 'u', '6927', 'r', '8789', '6061', 'Z', 'y', 'T', 'D', 'B', 3677, 2525, 'L', 4551, 'F', 's', 1089, 'z', 'O', 'p', 'J', 'C', 'r', 'R', 'k']