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

Ex Input:
[2413, 'l', 'o', 9687, 3939, 6935, '7821', '9179', '8181', 'K', '4993', '4813', 'x', 'A', 'O', '2477', 'b', 'H', 'I', 'z', 'I'], [4625, 6943, 'e', 'B', 'p', 'r', 'y', '7821', '9179', '8181', 'K', '4993', '4813', 'x', 'A', 'O', '2477', 'b', 'H', 'I', 'G', 'L', 8247, 'N', 8965, 8763, 'N', 'p', 7181, 'A', 'J', 'W']

Ex Output:
7821, 9179, 8181, K, 4993, 4813, x, A, O, 2477, b, H, I


Ex Input:
[875, 'U', 'g', 'q', 'H', 2847, 'f', '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'e', 'n', 5885, 'w', 3345, 4693, 'H', 7789, 'y', 'j', 'e'], ['V', 'j', 6713, 2923, 'y', 6205, 'm', 5961, 9023, '6811', 'B', '7549', 'K', 'r', 'V', 'x', 'P', 'X', '2469', '3845', 'W', 'y', 7427, 5987]

Ex Output:
6811, B, 7549, K, r, V, x, P, X, 2469, 3845, W


Ex Input:
[399, 'T', 'B', 6001, 'X', 6097, 'L', '5475', 'P', 'm', '9713', '7623', '2269', 'J', '7129', 'V', 'C', '7745', 'q', '3277', 'N', 'f', 'E', 'N', 4637, 'C', 'N', 'F', 'i', 909, 'v', 'I', 8877, 'o'], ['Y', 'p', 'k', 'L', '5475', 'P', 'm', '9713', '7623', '2269', 'J', '7129', 'V', 'C', '7745', 'q', '3277', 'c', 467, 'H']

Ex Output:

L, 5475, P, m, 9713, 7623, 2269, J, 7129, V, C, 7745, q, 3277