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

Ex Input:
['X', 1863, 6105, 'n', 8419, 6469, 'u', 'p', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'B', 9885], ['l', 'L', 'S', 'p', 'j', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'F', 5539, 'C', 1383, 'n', 9991]

Ex Output:
1641, 1413, 6389, 7069, 1333, q, 9609, D, 843, 2667, 223, 6689


Ex Input:
[5173, 6195, 's', '1739', 'z', '6701', '4055', '10017', '9615', '8077', 'I', '2899', 'm', 'H', '8731', '4099', '333', '4715', 'K', '1037', 'k', 'L', 'M', 1893, 'X', 'e'], ['k', 8023, 'R', 'D', 7703, 'l', 7021, 195, 307, 'H', 365, 8069, 559, 8195, 'g', 's', '1739', 'z', '6701', '4055', '10017', '9615', '8077', 'I', '2899', 'm', 'H', '8731', '4099', '333', '4715', 'K', '1037', 'k', 'l', 'o', 4179, 'O', 'Z', 'g', 1391, 's', 10005, 2651, 'D', 9085, 'y', 'L', 'L']

Ex Output:
s, 1739, z, 6701, 4055, 10017, 9615, 8077, I, 2899, m, H, 8731, 4099, 333, 4715, K, 1037, k


Ex Input:
['c', 'S', 'i', 'u', 'g', '5305', '5795', 'm', 'a', 'x', 'N', 6575, 'w', 'Z', 'C', 4163], ['R', 9885, 'g', '5305', '5795', 'm', 'a', 'x', 'a', 'h', 4637, 'S']

Ex Output:

g, 5305, 5795, m, a, x