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

Input: Consider Input: ['a', 8119, 'S', 2575, 3531, '3727', 'x', 'J', 't', '9825', 'z', 'o', '4043', '3637', '7545', 'F', 'N', 'g', 'c'], [5559, 'P', 'V', 1419, 6507, 'W', 9429, 'V', 9763, '3727', 'x', 'J', 't', '9825', 'z', 'o', '4043', '3637', '7545', 'y', 1229, 'S', 5613]

Output: 3727, x, J, t, 9825, z, o, 4043, 3637, 7545


Input: Consider Input: [9605, 301, 3815, '3555', '8399', '2421', '6579', 'I', 'g', 's', 'a', 'T', 'w', 7419, 1721, 3853, 5703], ['J', 1425, 3627, 3619, '3555', '8399', '2421', '6579', 'I', 'g', 's', 'Y', 'R', 4039, 'y']

Output: 3555, 8399, 2421, 6579, I, g, s


Input: Consider Input: [9469, 'b', 'x', 'S', '6081', '5847', 'k', 'p', 'p', 'Z', 'W', 'u', 'Z'], ['z', 'l', 3611, 'n', 4211, 'S', '6081', '5847', 'k', 'p', 'N', 5561, 'P', 3661]


Output: S, 6081, 5847, k, p