In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Ex Input:
[4143, 9623, 'k', 'Z', 1355, 4371, 5553, 'U', 8081, 843, 7307, 8537, 841, 6443, 9873, 'b', 4969, 1189, 9481, 9225, 6739, 4269, 3997, 9511, '5641', '8319', '5809', 'F', '7875', '8699', 'p', '1431', 'K', 'R', '53', '4049', 'b', 'b', '5823', 'E', '1073', '8199', '6801', '8501', '1971', '6131', '4225', '847', 'N', 4305, 'M', 2381, 'W', 7817, 'x', 7221, 4341, 'k', 4235, 'z', 9923, 'w', 'c', 7701, 'k', 6841, 9359], [831, 8989, 'O', 9915, 829, 'y', 2567, 8737, 'P', 1805, 'u', 'b', 3579, 6313, 455, 'E', 1193, 2669, 6121, 7167, 'P', '5641', '8319', '5809', 'F', '7875', '8699', 'p', '1431', 'K', 'R', '53', '4049', 'b', 'b', '5823', 'E', '1073', '8199', '6801', '8501', '1971', '6131', '4225', '847', 'G', 1015, 'c', 6677, 8939, 2951, 'L', 'd', 5797, 2413, 7741, 3025, 5391]

Ex Output:
5641, 8319, 5809, F, 7875, 8699, p, 1431, K, R, 53, 4049, b, b, 5823, E, 1073, 8199, 6801, 8501, 1971, 6131, 4225, 847


Ex Input:
['X', 'U', 'Z', 9489, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'U', 'p', 'R', 609, 4535, 4269, 8941, 'I', 2091, 'Q'], [3721, 8573, 8821, 6095, 1215, 1195, '4623', 'M', 'd', '5977', '7669', '8583', '2455', 'D', 'j', 'c', 'L', 'm', 'q', 'j', 697, 3367, 'R']

Ex Output:
4623, M, d, 5977, 7669, 8583, 2455, D, j, c


Ex Input:
[877, 3065, 1781, 4267, 5211, 3473, 'v', 'W', 551, 6643, 7755, 687, 2373, 2705, '591', '2367', '7693', 'X', 'w', 'K', '7499', 'A', '8309', 'R', 'x', 'N', '3897', '2923', '5845', '9093', '4645', '1077', 'W', '2575', '9587', '2577', 'i', 'n', 'U', 6387, 2603, 7317, 6421, 1415, 1205, 'I', 'G', 5429, 2835, 'd', 'b', 3717], ['u', 'V', 'C', 3683, 'C', 4699, 'W', 2813, 6861, 'h', 'Q', 'F', 7557, '591', '2367', '7693', 'X', 'w', 'K', '7499', 'A', '8309', 'R', 'x', 'N', '3897', '2923', '5845', '9093', '4645', '1077', 'W', '2575', '9587', '2577', 'S', 3699, 463, 'l', 'a', 'K', 7037, 'L', 5661]

Ex Output:

591, 2367, 7693, X, w, K, 7499, A, 8309, R, x, N, 3897, 2923, 5845, 9093, 4645, 1077, W, 2575, 9587, 2577