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

Ex Input:
['N', 'D', 'j', 8763, 8215, 'G', 'Z', 'v', 909, 'K', 'p', '3071', 'A', '8545', '3691', 'A', '5101', 'm', '9643', '8351', 'a', '4169', 'x', 'q', '8727', '9725', '4157', 'p', '3653', '3597', '1429', 'B', '1933', 'K', '3411', '1361', '9001', '4231', '8551', 'x', '6641', 'A', 4005, 'o', 8113, 'k', 1775, 3079, 8855, 'o', 'l', 255, 6343, 1891, 9015, 5959, 9905, 2355, 'w', 2921, 477, 'Y', 6563, 'm', 'n'], ['s', 6609, 3025, 'J', '3071', 'A', '8545', '3691', 'A', '5101', 'm', '9643', '8351', 'a', '4169', 'x', 'q', '8727', '9725', '4157', 'p', '3653', '3597', '1429', 'B', '1933', 'K', '3411', '1361', '9001', '4231', '8551', 'x', '6641', 'L', 'I', 1465, 'S', 'L', 9083, 9771, 8751, 'D', 'E', 2919, 'o', 2127, 3959]

Ex Output:
3071, A, 8545, 3691, A, 5101, m, 9643, 8351, a, 4169, x, q, 8727, 9725, 4157, p, 3653, 3597, 1429, B, 1933, K, 3411, 1361, 9001, 4231, 8551, x, 6641


Ex Input:
['x', 'H', 'i', 1013, 5655, 'y', 4853, 'Q', 1209, 'w', 'w', 'a', 'w', 7329, '961', 'j', '1783', '7579', 'e', '6525', 'Y', 'K', 'P', '293', '4793', '7251', '531', '3813', '4103', 'o', '6039', '9175', '3041', 'p', 'D', 'u', '7075', 'G', 'i', 'w', 4131, 867, 'y', 3835, 'o', 't', 1181, 4425, 'P'], ['J', 4263, 'Z', 9575, 'W', 'h', 'j', 9697, 4711, 'D', 9269, 1163, 7659, 8523, 'f', 'W', 'L', 'h', 'i', '961', 'j', '1783', '7579', 'e', '6525', 'Y', 'K', 'P', '293', '4793', '7251', '531', '3813', '4103', 'o', '6039', '9175', '3041', 'p', 'D', 'u', '7075', 'G', 'n', 'i', 71]

Ex Output:
961, j, 1783, 7579, e, 6525, Y, K, P, 293, 4793, 7251, 531, 3813, 4103, o, 6039, 9175, 3041, p, D, u, 7075, G


Ex Input:
['h', 6377, 6995, 'S', 'U', 'm', 5543, 'S', 2107, 3307, 2993, 'a', 'V', '449', 'o', 'S', 'c', '2535', '7621', '435', '7007', '8537', '9893', '6983', '4727', '7345', '9743', 'd', '8313', '4385', 'e', 10013, 5063, 1001, 3483, 'X'], [6733, 'p', 'p', 'M', 7953, 'e', 'Y', 1619, 't', 6597, 7107, 'F', 'i', 4209, 'V', '449', 'o', 'S', 'c', '2535', '7621', '435', '7007', '8537', '9893', '6983', '4727', '7345', '9743', 'd', '8313', '4385', 'K', 'h', 9455, 'P']

Ex Output:

V, 449, o, S, c, 2535, 7621, 435, 7007, 8537, 9893, 6983, 4727, 7345, 9743, d, 8313, 4385