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

Ex Input:
[8409, 4833, '3743', '7709', '4991', '1023', 'z', 'T', 9821, 'v', 'S', 2959], [2565, 6315, 'm', '3743', '7709', '4991', '1023', 'z', 'V', 'K', 'h', 'e']

Ex Output:
3743, 7709, 4991, 1023, z


Ex Input:
['J', 'A', 7687, 281, 'v', 'P', 'i', 7785, 'J', 'Y', 3523, '355', '7389', 'Q', '4119', 'I', 'r', '6615', '8467', 'C', '9539', '4047', 'F', 'B', '2161', 'm', 'W', 'C', 'O', '7731', '3331', 'i', 267, 'p', 4649, 'n', 'H', 'y', 2593, 4947, 3199, 7407, 8623, 'S'], ['T', 9895, 1551, 'O', 5617, 'p', '355', '7389', 'Q', '4119', 'I', 'r', '6615', '8467', 'C', '9539', '4047', 'F', 'B', '2161', 'm', 'W', 'C', 'O', '7731', '3331', 'S', 'C', 2099, 6507, 489, 9845, 6641, 2521]

Ex Output:
355, 7389, Q, 4119, I, r, 6615, 8467, C, 9539, 4047, F, B, 2161, m, W, C, O, 7731, 3331


Ex Input:
[7271, 4749, 399, 'O', 349, 'B', 'M', '5505', 'G', '2409', '2291', 'O', 'g', '5391', '6215', 'w', '4473', 'x', '8411', 'q', '655', 'T', 't', 6913, 'W', 'j', 'T', 'p', 6439, 'K', 3175, 'B'], [5193, 'G', 1879, 7127, 'S', 'e', 4819, 3545, 'J', 'C', 'M', '5505', 'G', '2409', '2291', 'O', 'g', '5391', '6215', 'w', '4473', 'x', '8411', 'q', '655', 'L', 9713, 'a', 'g', 'A', 'X', 3589, 4653, 'D']

Ex Output:

M, 5505, G, 2409, 2291, O, g, 5391, 6215, w, 4473, x, 8411, q, 655