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: [387, 577, 'j', 7891, 'N', 'W', 'V', 'n', 'A', '9835', '7109', '1637', '6825', 'J', '4143', 'a', '253', '2905', 'R', '1387', 'W', '4577', 'U', 'y', 'O', 1627, 5805, 8111], ['P', 'u', 'g', 'M', 6277, 'p', 'U', 'G', 211, 'o', 'd', 'V', 'n', 'A', '9835', '7109', '1637', '6825', 'J', '4143', 'a', '253', '2905', 'R', '1387', 'W', '4577', 'B', 'j', 8827, 'A']

Output: V, n, A, 9835, 7109, 1637, 6825, J, 4143, a, 253, 2905, R, 1387, W, 4577


Input: Consider Input: ['d', 'w', 9103, 'N', 'x', 'o', 367, 'S', 8091, 'c', '1227', '9455', 'Z', '3725', 'D', 'W', 'W', '689', 'R', 'Q', 'n', 789, 'd', 6581, 5183, 'Z', 6107, 5005], ['W', 9307, 6669, 'Y', 4665, 2287, 'c', '1227', '9455', 'Z', '3725', 'D', 'W', 'W', '689', 'R', 'Q', 'v', 'X']


Output: c, 1227, 9455, Z, 3725, D, W, W, 689, R, Q