Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['a', 2353, 'v', 4667, 'w', '2065', 'p', 'W', '3193', '4937', 'q', 'G', '6579', '419', '699', '3777', '893', 'z', 'b', 'o', '8039', 'x', '6203', 'o', '6569', '3305', '1829', 'P', '3197', 'W', '649', 'b', 7451, 5281, 'C', 'm', 'R', 6775, 'C', 9633, 'Z', 'd', 8459, 9021, 'e', 'r', 'd', 'V', 8689, 5099, 'U', 4765, 7279, 'V', 'a', 'r', 8735], ['D', 'd', 5747, 'B', 3783, 627, 4925, 'I', 6387, 339, 'c', 5319, 3933, 5233, 8871, 4417, 'Z', 7839, 9463, 'a', '2065', 'p', 'W', '3193', '4937', 'q', 'G', '6579', '419', '699', '3777', '893', 'z', 'b', 'o', '8039', 'x', '6203', 'o', '6569', '3305', '1829', 'P', '3197', 'W', '649', 'V', 2743, 8601, 8367, 'V', 'c', 7449, 6489, 'd', 'f', 'v', 'f']
Output:
2065, p, W, 3193, 4937, q, G, 6579, 419, 699, 3777, 893, z, b, o, 8039, x, 6203, o, 6569, 3305, 1829, P, 3197, W, 649