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

Ex Input:
['K', 4691, 'I', '2495', '1015', 'L', '581', 'b', 9477], ['k', 2419, 'd', 'I', '2495', '1015', 'L', '581', 'r', 's', 6673, 5755]

Ex Output:
I, 2495, 1015, L, 581


Ex Input:
['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']

Ex Output:
997, n, 631, 527, E, A, n, n, G, 1197, R, L


Ex Input:
['X', 'Q', 2127, 105, 'w', 'i', 'A', 'j', 'x', 'w', 't', 'm', 'X', '8717', '709', '9129', 'J', '4501', '4753', 'k', '3891', 'z', '767', 'X', '3663', 'q', 'R', '9369', '5301', '4125', '41', '1367', 'w', 'M', '5021', 'O', 1665, 'n', 'A'], [8931, 'k', 733, 1907, 'a', 'u', 'U', 1669, 'Q', 3083, 'Z', 'l', 5225, 'Q', 8591, 's', 1079, 157, 9185, 2583, '8717', '709', '9129', 'J', '4501', '4753', 'k', '3891', 'z', '767', 'X', '3663', 'q', 'R', '9369', '5301', '4125', '41', '1367', 'w', 'M', '5021', 'u', 'v', 'o', 915, 1747, 355, 3429, 127, 7959, 9563, 4357, 3523, 3639, 'E']

Ex Output:

8717, 709, 9129, J, 4501, 4753, k, 3891, z, 767, X, 3663, q, R, 9369, 5301, 4125, 41, 1367, w, M, 5021