Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['G', 'l', 5027, 301, 'd', 'B', 'k', 4905, 3575, 'Z', 9285, 'J', 'G', 'D', 'Y', 4119, 'N', 'o', '6365', 'D', 'M', 'W', '3803', '8291', '4837', 'a', '8713', 'b', '4245', '7465', '1863', 'P', 'q', '4867', 'q', 'S', 'E', '9879', 's', '3603', 'w', 9151, 'G', 2511, 1933, 7519, 9857, 2149, 6689, 'P', 9219, 'U', 'E', 'E', 8183], [6877, 773, 3415, 'g', 9499, 1881, 2673, 4725, 7509, 'N', 'o', '6365', 'D', 'M', 'W', '3803', '8291', '4837', 'a', '8713', 'b', '4245', '7465', '1863', 'P', 'q', '4867', 'q', 'S', 'E', '9879', 's', '3603', 't', 1639, 3453, 'Q', 'r', 9575, 8797, 9717, 1603, 3943, 4767, 8743, 'x', 'l', 'S', 'C', 'K']
Output:
N, o, 6365, D, M, W, 3803, 8291, 4837, a, 8713, b, 4245, 7465, 1863, P, q, 4867, q, S, E, 9879, s, 3603