Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['M', 6605, 1651, 7551, 3461, 3437, 'b', 6265, 'N', 'G', 'x', 'i', 2413, 8293, 115, 'U', 3281, 'Q', '1117', 'w', 'H', 'a', '313', 'e', 'i', '1695', '8067', '4921', '5925', '9183', '3025', '6375', 'X', 'n', 'X', 'a', 'N', 'C', '3819', 'R', '3463', 'f', '9309', '3837', 'k', 'k', 245, 7869, 'H', 2279, 6889, 119, 6203, 'i', 3719, 'm', 5889, 7057, 'x', 'F'], ['x', 's', 'C', 2455, 'i', 'O', 'G', 'I', 'M', 7799, 2675, 'n', 257, 1887, 3551, 4465, 1367, 'X', 4531, 7849, 'h', 'Q', '1117', 'w', 'H', 'a', '313', 'e', 'i', '1695', '8067', '4921', '5925', '9183', '3025', '6375', 'X', 'n', 'X', 'a', 'N', 'C', '3819', 'R', '3463', 'f', '9309', '3837', 'f', 'U', 'u', 1223, 1227, 75, 8289, 6779, 9699, 'd', 5173, 4541, 9039, 'f', 'w', 'e', 5363, 7519, 'V', 2709, 683, 'a', 'B']
Output:
Q, 1117, w, H, a, 313, e, i, 1695, 8067, 4921, 5925, 9183, 3025, 6375, X, n, X, a, N, C, 3819, R, 3463, f, 9309, 3837