Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2933, 'R', 'u', 'z', 'S', 'B', 6741, 'l', 'j', 6677, 3199, 5949, 1993, 6283, 'p', '2393', '1117', 'I', '537', 'k', 'Z', '3097', '3089', 'T', '5673', '5027', '5609', '2309', '8371', 'x', '981', 'l', 'r', 'L', 'x', '149', 'w', '8557', '4969', 'A', '3103', 'a', 'G', 3121, 'k', 6681, 'Q', 6051, 'w', 1107, 7751, 'P', 5491, 'J', 'A', 1825, 'c', 5527, 'x', 'b', 'q', 1147, 1405], [4317, 'A', 'Y', 'K', 5201, 'V', 3171, 1499, 2681, 2457, '2393', '1117', 'I', '537', 'k', 'Z', '3097', '3089', 'T', '5673', '5027', '5609', '2309', '8371', 'x', '981', 'l', 'r', 'L', 'x', '149', 'w', '8557', '4969', 'A', '3103', 'a', 'p', 855, 'X', 'e', 705, 8983, 'F']
Output:
2393, 1117, I, 537, k, Z, 3097, 3089, T, 5673, 5027, 5609, 2309, 8371, x, 981, l, r, L, x, 149, w, 8557, 4969, A, 3103, a