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

Ex Input:
[4817, 'A', '3155', 'W', 'm', 4061], [7701, 'P', '3155', 'W', 't', 'J']

Ex Output:
3155, W


Ex Input:
['x', 495, 'L', 'O', 2935, 'y', 163, 3507, 6515, '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'w', 1985, 'F', 'V', 5375, 6359, 7963, 4103, 2625, 'p', 'N', 7945, 'L', 6909], [251, 'J', 'k', 4075, 'd', 'x', 'j', 'K', 'u', 605, 1667, 8527, 6845, 2537, 'O', 9259, 'o', 'B', '5249', '9751', '8269', '923', '10005', '9739', 'u', 'X', 'y', '4535', 'I', 'V', 'f', '8511', '8955', 's', '2255', '1', '7831', 't', 'j', 'S', 'H', 1289]

Ex Output:
5249, 9751, 8269, 923, 10005, 9739, u, X, y, 4535, I, V, f, 8511, 8955, s, 2255, 1, 7831, t


Ex Input:
['n', 1705, 8635, 9617, 'W', 7963, 'L', 'l', 'J', 'J', 'Q', '9459', 'j', '889', '5791', '6269', '3531', 'D', '1735', '7527', '7253', 'x', 't', '3287', 's', '655', 'K', 'w', 'x', 'l', 'f', '813', 'a', 'F', 'm', 'L', 'M', 'r', 7229, 5733], [1041, 5521, 'J', 'J', 'Q', '9459', 'j', '889', '5791', '6269', '3531', 'D', '1735', '7527', '7253', 'x', 't', '3287', 's', '655', 'K', 'w', 'x', 'l', 'f', '813', 'a', 'F', 'O', 7899, 8037, 1873, 1265, 8387, 'f', 'k', 4611, 8789, 111, 'L', 'X', 2869, 'Q', 'I']

Ex Output:

J, J, Q, 9459, j, 889, 5791, 6269, 3531, D, 1735, 7527, 7253, x, t, 3287, s, 655, K, w, x, l, f, 813, a, F