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

Ex Input:
[5701, 'Y', 2511, 4707, 'i', 9083, 1187, '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'X', 8863, 7467, 665, 3485, 4035, 'g', 8795], [189, 8331, 'N', 'S', 'U', '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'R', 't', 9581, 5575, 'Q', 'Q', 1209]

Ex Output:
749, v, i, f, j, 5983, 4221, p, q, 8703, n, Z, O, A, H


Ex Input:
[5269, 'q', 'b', 9461, 1715, 8909, 2865, 't', 3899, 9097, 's', 'J', 'u', 'O', 'q', '3289', '9079', 'q', '1341', 'a', '8881', 's', '1837', '4351', '5559', '43', '4733', 'y', '6455', '6219', '725', '7947', '7143', '9627', '3401', '1647', '755', 'E', 4775, 7047, 6939, 5023, 'F', 1385, 'f', 'P', 'R', 6711, 3741, 'C', 6351, 'K', 5279, 'm', 4933, 8587, 4429, 793, 5537, 'v'], ['X', 'A', 'I', 'W', 8039, 6937, 'l', 209, 6835, 'Z', 'x', 'G', 'R', 's', 'J', 'u', 'O', 'q', '3289', '9079', 'q', '1341', 'a', '8881', 's', '1837', '4351', '5559', '43', '4733', 'y', '6455', '6219', '725', '7947', '7143', '9627', '3401', '1647', '755', 'i', 'a', 'k', 5823, 'r', 'l', 'p', 'F', 5771, 'H', 7231, 't', 'c']

Ex Output:
s, J, u, O, q, 3289, 9079, q, 1341, a, 8881, s, 1837, 4351, 5559, 43, 4733, y, 6455, 6219, 725, 7947, 7143, 9627, 3401, 1647, 755


Ex Input:
['X', 'm', 3283, '9861', '2357', '8239', 'v', 's', 'a', 'D', 'x'], [1269, 'm', 2011, 'z', '9861', '2357', '8239', 'v', 'l', 261]

Ex Output:

9861, 2357, 8239, v