In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6397, 'W', 'k', 'v', 'E', '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'N', 1329, 5233, 'U', 2563, 'L', 8547], [1857, 'F', 'g', 8381, 165, 'o', 7009, 5455, '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'X', 'g']