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

Input: Consider Input: ['I', 583, 4045, 't', 'N', 'H', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'R', 'i', 493, 2571, 7837], ['E', 3649, 'M', 7321, 8477, 1609, 'p', '1017', 'u', '7255', '8583', 'M', 'x', '143', 'e', 'l', 'U', 'S', '791', 'a', '6927', '3887', 'j', 4719, 'u', 'F', 'U', 'P', 'c', 3121, 'u', 6871, 'T']

Output: 1017, u, 7255, 8583, M, x, 143, e, l, U, S, 791, a, 6927, 3887


Input: Consider Input: ['M', 'm', 8571, 'J', 7297, 3761, 35, 8987, 1723, 1719, 1591, 'Z', 3877, '6959', '3717', 'y', '4219', '993', 'E', '8809', 'A', 'q', 't', '5583', '6643', 'L', '5605', 'S', 'o', '3071', '1365', 'X', 2021, 'N', 3259, 'X', 'h', 'v', 7289, 9767, 2785, 7275], ['h', 'w', 'c', 'p', 'y', 'y', 'h', 'X', '6959', '3717', 'y', '4219', '993', 'E', '8809', 'A', 'q', 't', '5583', '6643', 'L', '5605', 'S', 'o', '3071', '1365', 'P', 'k', 'I', 7703]

Output: 6959, 3717, y, 4219, 993, E, 8809, A, q, t, 5583, 6643, L, 5605, S, o, 3071, 1365


Input: Consider Input: ['T', 8795, 'o', 'Q', 'c', 'n'], ['F', 6403, 'o', 'Q', 'm', 1905]


Output: o, Q