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

Input: Consider Input: ['l', 8391, 7237, 'j', 5061, '1867', 'R', '5053', 'H', 'R', 'd', 'K', 8013, 'H'], ['H', 7623, '1867', 'R', '5053', 'H', 'R', 'd', 'e', 3679, 'd', 'M', 'j']

Output: 1867, R, 5053, H, R, d


Input: Consider Input: [2481, 7755, 2663, 2449, 4291, 'b', 5343, 'F', 'A', '3811', 'G', 'I', '415', '6825', '2449', 'q', 'W', 'x', 't', 'K', 'l', 539, 3959], ['W', 'N', 'K', 4351, '3811', 'G', 'I', '415', '6825', '2449', 'q', 'W', 'x', 'c', 9833]

Output: 3811, G, I, 415, 6825, 2449, q, W, x


Input: Consider Input: [1049, 'k', 'x', 'U', 3683, 'H', 'L', '3383', 'u', '4561', 'M', '8363', '4915', '8203', 'v', 4295, 'L', 'y', 'v'], [1645, 5979, 'y', 1035, 6027, 'c', 'Z', 'L', '3383', 'u', '4561', 'M', '8363', '4915', '8203', 'F', 4231, 7905, 'z']


Output: L, 3383, u, 4561, M, 8363, 4915, 8203