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

Example Input: [5555, 'e', 'k', '4653', 'S', 'q', 'o', 'z'], [8655, 3981, 'k', '4653', 'S', 'q', 'k', 8991, 8619, 's']
Example Output: k, 4653, S, q

Example 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]
Example Output: 4943, 9427, 7945, 7645, 1709, 6515, 2249, l, n, f, 1935, e, f, 2977, 8835, p, 7753, U, 295

Example Input: [5293, 921, '5895', 'V', 'y', 8221], [9471, 'N', '5895', 'V', 'B', 1401]
Example Output:
5895, V