In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8779, 'o', 7341, 'q', 'x', 2727, 8843, 'r', 't', 'v', 1103, 2165, 'n', '3071', 'X', '561', 'w', '1315', '4571', '6913', 'K', 'O', 'o', 'c', 'f', '4827', '8017', '3947', '5187', '8671', '1721', '7655', '3061', '8185', '2111', '5645', 'R', 'R', 2427, 'L', 3739, 9749, 6021, 'T', 'X', 'S'], [5865, 'e', 'F', 7689, 'k', 'o', 639, 't', 669, 10009, 7285, 'J', 5657, 'U', 'E', 'q', 'D', 'S', 9571, 'x', '3071', 'X', '561', 'w', '1315', '4571', '6913', 'K', 'O', 'o', 'c', 'f', '4827', '8017', '3947', '5187', '8671', '1721', '7655', '3061', '8185', '2111', '5645', 'N', 'L', 'V', 8759, 'S', 'N', 5999, 'F', 5987, 5145, 'm', 5157, 2221, 9907, 47, 'e', 'o', 2331, 2529]