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

Ex Input:
[1875, 'T', 'Y', '5527', 'F', 'y', '5669', 'm', 'k', 2655, 8089], [3997, 7707, 9937, 'M', '5527', 'F', 'y', '5669', 'm', 'a', 'e']

Ex Output:
5527, F, y, 5669, m


Ex Input:
[9639, 'C', 9853, 'A', 'k', 633, 1303, 6893, 1461, 'O', 'i', 'E', 'L', 8811, 1123, 1523, 285, 'G', 6701, 'v', 'E', 2799, 9503, '6601', 'Z', 'H', '2771', '1129', 'G', '3897', '3577', '1459', '6281', '7955', '3751', '5339', 'R', '4343', '9107', 'Q', 'H', 'r', 'I', 'n', '5191', 'E', '3385', '9711', 'g', 'W', 'O', 9249, 3181, 3455], ['x', 'l', 7827, 8297, 'D', 5453, 6611, '6601', 'Z', 'H', '2771', '1129', 'G', '3897', '3577', '1459', '6281', '7955', '3751', '5339', 'R', '4343', '9107', 'Q', 'H', 'r', 'I', 'n', '5191', 'E', '3385', '9711', 'g', 'W', 'y', 4363, 8699, 'H', 'h', 4081, 'F', 'S', 8027, 'p', 'j']

Ex Output:
6601, Z, H, 2771, 1129, G, 3897, 3577, 1459, 6281, 7955, 3751, 5339, R, 4343, 9107, Q, H, r, I, n, 5191, E, 3385, 9711, g, W


Ex Input:
[7225, 2731, '1333', '1699', 'a', '6345', '8221', '5899', 'Q', 'T', 'T', 'w', '8621', '957', 'y', '649', 'P', 'V', 'F', '6013', 'h', 'j', '3199', 'l', '3413', '5103', 'i', 'q', 'u', 'w', 'Z', '7687', 'n', 'R', 661, 't', 1103, 5853, 'F', 'H', 'u', 5261, 'F', 6749, 'G', 6939, 2157, 7699, 'n', 'K', 3695, 8527, 'o', 'a', 'e'], [1849, 'f', 7415, 5647, 9689, 'L', 'Q', 'n', 4987, 1009, 'n', 'W', 'V', 571, 1197, 'a', 2131, 't', 'C', 8687, 'z', 5635, 9143, 777, 'l', '1333', '1699', 'a', '6345', '8221', '5899', 'Q', 'T', 'T', 'w', '8621', '957', 'y', '649', 'P', 'V', 'F', '6013', 'h', 'j', '3199', 'l', '3413', '5103', 'i', 'q', 'u', 'w', 'Z', '7687', 'Q', 2631, 'X']

Ex Output:

1333, 1699, a, 6345, 8221, 5899, Q, T, T, w, 8621, 957, y, 649, P, V, F, 6013, h, j, 3199, l, 3413, 5103, i, q, u, w, Z, 7687