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

Ex Input:
['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]

Ex Output:
8587, b


Ex Input:
['l', 3279, 2027, 5827, 2313, 'v', 'T', 'O', 'E', 4721, 8305, 'D', 'l', 7653, 691, 8635, 9965, 1271, 'c', 'p', '7861', 'j', 'Z', '1625', '4881', '4155', 'h', 'n', 'o', 'd', '3563', 'L', 'x', '9939', '3911', '4255', 'v', '1067', '3399', 'x', 'Z', 4211, 'r', 'a', 2311, 3909, 't', 'w', 9527, 'Z', 'A', 2927], [4809, 'D', 'B', 'w', 6325, 10019, 2381, 4757, 'f', 1485, 2737, 'B', 7953, 'v', 8565, 'f', '7861', 'j', 'Z', '1625', '4881', '4155', 'h', 'n', 'o', 'd', '3563', 'L', 'x', '9939', '3911', '4255', 'v', '1067', '3399', 'x', 'K', 'Q', 'd', 8559, 'p', 5259, 'o', 9663, 'j', 4891, 'm', 'C', 2501, 7067, 1463, 'U', 'p']

Ex Output:
7861, j, Z, 1625, 4881, 4155, h, n, o, d, 3563, L, x, 9939, 3911, 4255, v, 1067, 3399, x


Ex Input:
['T', 8511, 5147, 'g', 7709, 8339, '3377', 'w', '3589', '7667', 'K', 'g', 'x', 'w', '6857', '7509', 'L', 'R', 519, 'w', 'S', 'r', 51, 1923, 'S', 'G', 'k'], ['k', 'F', 527, '3377', 'w', '3589', '7667', 'K', 'g', 'x', 'w', '6857', '7509', 'L', 'd', 4349, 'S', 8313, 'S', 'd', 5799, 9045, 7455]

Ex Output:

3377, w, 3589, 7667, K, g, x, w, 6857, 7509, L