In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2505, 'N', 7835, 'B', 'Z', 5641, '8279', 'G', 'S', 'r', '8403', 'h', '6931', 'p', '3851', 'S', 'F', 6537, 8497, 7323, 'w', 3123, 8955, 6347], [3301, 't', '8279', 'G', 'S', 'r', '8403', 'h', '6931', 'p', '3851', 'd', 5235, 'i', 2853, 8127, 'x', 3013, 'a', 1027]