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

Input: Consider Input: ['N', 'V', 'O', 'x', 1311, 'v', 'd', 8727, 6043, '5765', '7781', '5561', 'S', 'b', 'F', '7789', '6181', 'N', '6861', '9347', '6701', '3981', '4855', 'B', '7527', 'X', 'v', 'D', '9489', 'a', 'T', 3027, 'l', 5595], ['r', 'K', 'R', 6379, 'o', 'w', '5765', '7781', '5561', 'S', 'b', 'F', '7789', '6181', 'N', '6861', '9347', '6701', '3981', '4855', 'B', '7527', 'X', 'v', 'D', '9489', 'x', 'q', 'p', 'Q', 'D', 'B', 9451, 'w', 2131]

Output: 5765, 7781, 5561, S, b, F, 7789, 6181, N, 6861, 9347, 6701, 3981, 4855, B, 7527, X, v, D, 9489

Input: Consider Input: [7299, 'v', 7279, 'o', 2589, 'K', '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'f', 1935, 'V', 9979, 3301, 'Z', 'J', 521, 871, 'Z', 'R', 7831, 'T', 'h', 3231, 'e', 2391], [7491, 'k', 4137, 'P', 'F', 8159, 'x', 6363, 2449, 7479, 6825, 7107, 'I', 2931, 7047, 9149, '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'g', 7147, 2657, 'Z', 'a', 503]

Output: 4943, 9427, 7945, 7645, 1709, 6515, 2249, l, n, f, 1935, e, f, 2977, 8835, p, 7753, U, 295

Input: Consider Input: ['t', 6427, 5497, 'c', 'd', 'n', 'd', 5135, 9671, 8217, 'A', '3017', 'y', 'r', 'l', '583', 'p', '8087', '5475', 'n', '5709', '6481', '359', '4719', 'C', '9857', '7525', '9533', '6713', '8411', 'K', 'o', 'V', 7765, 'z', 8149, 607, 335], ['a', 'M', 'J', 4125, 61, 'A', '3017', 'y', 'r', 'l', '583', 'p', '8087', '5475', 'n', '5709', '6481', '359', '4719', 'C', '9857', '7525', '9533', '6713', '8411', 'K', 'U', 'e', 4881, 'X', 'X', 'g', 'n', 'T', 1541, 1235, 7115, 1233, 'n', 'P', 2273]
Output: A, 3017, y, r, l, 583, p, 8087, 5475, n, 5709, 6481, 359, 4719, C, 9857, 7525, 9533, 6713, 8411, K