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

Ex Input:
[1363, 'O', 'u', '3885', 'y', '2105', '1495', '417', 'n', 9057, 2977], ['x', 'X', '3885', 'y', '2105', '1495', '417', 'X', 2883]

Ex Output:
3885, y, 2105, 1495, 417


Ex Input:
['i', 6139, 'B', 'z', 'A', 7029, 'r', 'l', 'N', 'J', '7029', 'l', 'm', 'F', 1251], ['d', 9233, 543, 5455, 8707, 'r', 'l', 'N', 'J', '7029', 'l', 'm', 'r', 4751]

Ex Output:
r, l, N, J, 7029, l, m


Ex Input:
['o', 3249, 'C', 'k', 'F', 9695, 3563, 'Y', 'j', 'm', 9951, 8573, 1739, 'u', 4567, 1849, 'v', '417', '3307', 'k', 'Q', '8473', 'a', 'L', '7379', 'L', 'L', '6717', 'f', '4409', '5955', '3221', 'p', 'x', 'p', '6887', 'v', '7149', '7847', 'i', '10005', '3599', 'K', 'i', '7841', '521', 'r', 2869], ['X', 'N', 'o', 'f', 'D', '417', '3307', 'k', 'Q', '8473', 'a', 'L', '7379', 'L', 'L', '6717', 'f', '4409', '5955', '3221', 'p', 'x', 'p', '6887', 'v', '7149', '7847', 'i', '10005', '3599', 'K', 'i', '7841', '521', 'q', 'C', 'q', 9129, 'u', 'W', 'A', 'K', 8719, 1741, 2895]

Ex Output:

417, 3307, k, Q, 8473, a, L, 7379, L, L, 6717, f, 4409, 5955, 3221, p, x, p, 6887, v, 7149, 7847, i, 10005, 3599, K, i, 7841, 521