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

Input: Consider Input: ['N', 3679, '5181', 'q', 'c', 'W', 'r', 'l', 399], ['f', 6419, 5567, 'L', 'c', '5181', 'q', 'c', 'W', 'r', 'd', 8123, 3981, 'D', 'W']

Output: 5181, q, c, W, r


Input: Consider Input: [1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']

Output: 8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749


Input: Consider Input: [7715, 'd', 'k', 5675, 9737, 8045, 5889, 3851, 3783, 5149, 'g', 381, 'K', 'd', 'l', 'G', 'F', '3471', '6281', '3805', '8443', 'x', '4983', '3543', 'l', 'f', 'u', 'Y', '837', 'X', 'V', 'A', 'G', 't', '6591', '893', '5305', 'Q', '2861', 'k', '5205', 'u', 'v', 'D', 'G', 'X', 'q', 10023, 2001, 8385, 'b', 5097, 7361, 'l', 'g', 'o', 4951, 8455], ['e', 8453, 'i', 'L', 'm', 'r', 5917, 'K', '3471', '6281', '3805', '8443', 'x', '4983', '3543', 'l', 'f', 'u', 'Y', '837', 'X', 'V', 'A', 'G', 't', '6591', '893', '5305', 'Q', '2861', 'k', '5205', 'u', 'x', 9187, 891, 'Y', 5887, 681]


Output: 3471, 6281, 3805, 8443, x, 4983, 3543, l, f, u, Y, 837, X, V, A, G, t, 6591, 893, 5305, Q, 2861, k, 5205, u