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

Input: Consider Input: [7485, 'Y', 'T', '5979', 'w', 'Q', 'e'], [1525, 4389, 'm', 'T', '5979', 'w', 'w', 1497, 8995]

Output: T, 5979, w


Input: Consider Input: ['z', 'j', 'G', 'w', 'h', 5009, 'z', 'r', '1279', 'z', '1337', 'R', 'R', 9761, 'D', 713], ['a', 'T', 'A', 'z', 'r', '1279', 'z', '1337', 'R', 'J', 'z', 'L', 'P']

Output: z, r, 1279, z, 1337, R


Input: Consider Input: ['Q', 5377, 9899, 'M', 8897, 'N', 9477, 'Q', 5753, 6931, 'l', 2417, 'Y', 6009, 6619, 9549, 'p', 8051, 2277, 6837, 5851, 's', 5287, 'Q', 's', 'u', 'T', 'X', 'W', 'X', 'x', '6471', 'M', '2805', 'b', 'w', '4853', '8207', 'M', 'T', 'h', 'm', 'U', '2639', 'U', '9863', '9281', 'E', '7785', 'p', 'a', 'V', '1671', 'G', 8979, 1493, 4965, 1155, 9505, 'U', 9409, 'm', 963, 'h'], [7819, 'a', 'g', 3821, 'j', 'T', 'X', 'W', 'X', 'x', '6471', 'M', '2805', 'b', 'w', '4853', '8207', 'M', 'T', 'h', 'm', 'U', '2639', 'U', '9863', '9281', 'E', '7785', 'p', 'a', 'V', '1671', 'Z', 'N', 'X', 'k', 'S', 5493, 6435, 5617, 5639, 'r', 'b', 'Y', 'h', 'T', 'c', 'P']


Output: T, X, W, X, x, 6471, M, 2805, b, w, 4853, 8207, M, T, h, m, U, 2639, U, 9863, 9281, E, 7785, p, a, V, 1671