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

Input: Consider Input: [4839, 2307, '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'J', 'h', 'k', 'P'], [2615, 't', 5171, 'V', 'q', '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'p', 5261, 3251]

Output: 5609, V, s, 7059, N, 3761, i, 161, 1987, N

Input: Consider Input: [8523, 2741, 'B', 2283, 2319, 5579, 4895, 1093, '6081', 'w', 'j', 'U', '8951', 'g', '3325', '6587', '4979', 'X', 'x', '8257', 'G', 2491], [17, 6185, '6081', 'w', 'j', 'U', '8951', 'g', '3325', '6587', '4979', 'X', 'x', '8257', 'n', 4549, 'g', 1859, 'f', 'B', 4639, 6413]

Output: 6081, w, j, U, 8951, g, 3325, 6587, 4979, X, x, 8257

Input: Consider Input: ['J', 'b', 5915, 7145, 'T', 3501, 'a', 2635, 3855, 3575, 'z', 2499, 3893, 6087, 5219, 'i', 'R', 'k', '8121', 'N', 'k', 'i', '1475', 'k', 'S', '8135', 'l', 'l', '91', '5571', 'c', 5363, 4333, 'K', 4661, 'V', 3371, 'O', 8161, 3355, 5795, 2023], [1019, 6715, 'T', 'M', 6721, 'i', 'R', 'k', '8121', 'N', 'k', 'i', '1475', 'k', 'S', '8135', 'l', 'l', '91', '5571', 'k', 'C', 'W', 4089]
Output: i, R, k, 8121, N, k, i, 1475, k, S, 8135, l, l, 91, 5571