Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [9389, 'e', 6921, 'n', 3009, 2563, 'J', 217, 2559, 8515, 8201, 5315, 'B', 187, 'P', 3613, '2535', '7887', 'c', 'g', 'G', 'k', 'a', '8465', 'g', '4797', 'q', '8935', 'j', 'R', '9541', '377', '9787', 'X', 'G', '2437', 'U', 'f', '453', 'A', 'H', 'a', 'C', '9357', 'j', 'd', 'm', 8663, 5601, 'O', 3599, 4201, 5071, 'X', 3017, 3515, 931, 8025, 8557, 7005, 9025, 4275, 1051, 'Q', 9063, 'l', 4671, 'N', 1449, 5567, 'V', 4439, 'n'], ['F', 'J', '2535', '7887', 'c', 'g', 'G', 'k', 'a', '8465', 'g', '4797', 'q', '8935', 'j', 'R', '9541', '377', '9787', 'X', 'G', '2437', 'U', 'f', '453', 'A', 'H', 'a', 'C', '9357', 'j', 'S', 1537, 6479, 6503, 9783, 'p', 4833, 3115, 'v', 'M', 6563]
Output:
2535, 7887, c, g, G, k, a, 8465, g, 4797, q, 8935, j, R, 9541, 377, 9787, X, G, 2437, U, f, 453, A, H, a, C, 9357, j