In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Solution is here: 8297, b
Explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].

Now, solve this: [3067, 1391, 7801, 'l', 2387, 'W', '8587', 'u', 'g', 'G', '4301', 'T', 'h', '1031', '3693', 'A', '645', '4689', 'l', 'f', 's', 'm', '1469', '1841', 'v', '2491', 'E', 'M', '6497', 'B', '1767', '7887', 'u', 'P', '357', 'F', 'v', 9329, 'o', 'E', 9685, 3275, 'H', 2795, 2529, 8583, 'w', 8053, 'f'], [3507, 2343, 'i', 1461, 'b', 'B', 9325, 2477, 'J', 213, 3105, 1463, 5919, 8895, 3591, '8587', 'u', 'g', 'G', '4301', 'T', 'h', '1031', '3693', 'A', '645', '4689', 'l', 'f', 's', 'm', '1469', '1841', 'v', '2491', 'E', 'M', '6497', 'B', '1767', '7887', 'u', 'P', '357', 'H', 1959, 'W', 8805, 'f', 7963, 'F']
Solution:
8587, u, g, G, 4301, T, h, 1031, 3693, A, 645, 4689, l, f, s, m, 1469, 1841, v, 2491, E, M, 6497, B, 1767, 7887, u, P, 357