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

Ex Input:
[9741, 'E', 4251, 8197, 'V', 'd', 'U', 'S', 'l', 4297, 9217, 'O', 6607, '2517', 'G', 'y', 'a', 'F', '1035', '823', 'E', 'J', 'a', '3609', '7379', 'x', 'Y', 'M', '1893', 'O', '4875', 'z', 'B', 'c', '7147', 'u', '9477', 'R', 'u', 587, 'r', 'i', 3977, 's', 'V', 'v', 215, 399, 's', 7561, 25, 3885, 1501, 'W', 7853, 'l', 5145, 'z'], [5441, 169, 9471, 'r', 'i', 7087, 'v', 't', 6273, 'k', 1041, 'd', 'Q', 2227, 5617, '2517', 'G', 'y', 'a', 'F', '1035', '823', 'E', 'J', 'a', '3609', '7379', 'x', 'Y', 'M', '1893', 'O', '4875', 'z', 'B', 'c', '7147', 'u', '9477', 'Z', 'b', 3671, 'y', 9829, 7849, 9049, 'T', 8407, 'M', 'B', 'N', 7837, 2963, 7385, 'K', 8717, 'j', 3621, 75, 'E']

Ex Output:
2517, G, y, a, F, 1035, 823, E, J, a, 3609, 7379, x, Y, M, 1893, O, 4875, z, B, c, 7147, u, 9477


Ex Input:
['X', 1863, 6105, 'n', 8419, 6469, 'u', 'p', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'B', 9885], ['l', 'L', 'S', 'p', 'j', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'F', 5539, 'C', 1383, 'n', 9991]

Ex Output:
1641, 1413, 6389, 7069, 1333, q, 9609, D, 843, 2667, 223, 6689


Ex Input:
['X', 4099, 'h', 'L', 8081, 'o', 'O', 1659, 'm', 'A', '3893', 'H', '9803', 'n', 'Z', '5029', '6159', '2373', 'd', 'Z', 'X', '7969', 'F', 'T', 'l', 1119, 4585, 3747, 8983, 149, 'T', 6559, 'r', 'h', 'e', 2019, 89, 3627], [7879, 'f', 'T', 1705, 'q', 9785, '3893', 'H', '9803', 'n', 'Z', '5029', '6159', '2373', 'd', 'Z', 'X', '7969', 'F', 'T', 'X', 9045, 'U', 'Q', 'j', 'E', 8915, 6159, 'P', 'y', 9315]

Ex Output:

3893, H, 9803, n, Z, 5029, 6159, 2373, d, Z, X, 7969, F, T