Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5987, 2871, 3323, 'G', 'q', '2233', '4567', 'c', 'W', 'H', 'b', '6497', 'c', '9669', 'Y', '9809', '4517', '6129', '2239', '5273', 'e', 'A', '6243', '6499', '5299', 'z', '7671', '1363', 'B', 'y', '1775', '6309', '6253', 'c', 5151, 7997, 2459, 2967, 5285, 3907, 'W', 8779, 'S', 'q', 'D', 2409, 'n', 'n', 'C', 5307, 'h', 407, 3339, 'b', 's'], ['x', 'o', 't', 'p', 6295, 7759, 'N', 'N', 8817, 'g', 'S', 'm', 4687, 5397, 'G', 'q', '2233', '4567', 'c', 'W', 'H', 'b', '6497', 'c', '9669', 'Y', '9809', '4517', '6129', '2239', '5273', 'e', 'A', '6243', '6499', '5299', 'z', '7671', '1363', 'B', 'y', '1775', '6309', '6253', 'V', 2903, 733, 'K', 'j', 'n', 9897, 'M', 'q', 'j', 6015, 'i', 1891, 865, 'x', 6745, 5873, 3159, 'M', 1303, 'W', 3835, 1661, 9395, 961, 2763, 4371, 'S', 7373, 'P']
Output:
G, q, 2233, 4567, c, W, H, b, 6497, c, 9669, Y, 9809, 4517, 6129, 2239, 5273, e, A, 6243, 6499, 5299, z, 7671, 1363, B, y, 1775, 6309, 6253