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

Input: Consider Input: ['C', 9451, 'a', 'c', '1879', '7201', 'H', '3431', 'u', 17], ['t', 37, '1879', '7201', 'H', '3431', 'X', 7267, 'Z']

Output: 1879, 7201, H, 3431


Input: Consider Input: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]

Output: 5001, 8571, 2343, 9471, P, 6369, 9299


Input: Consider Input: [9555, 3961, 6321, '6633', '7713', '7367', 'K', 'Q'], ['g', 'F', 'v', '6633', '7713', '7367', 'N', 'U', 3303]


Output: 6633, 7713, 7367