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

Input: Consider Input: [5861, 'Z', 1225, '3813', '8297', 't', '9301', 'd', 9323, 825], [5491, 'a', '3813', '8297', 't', '9301', 'Y', 'L', 'j', 5005]

Output: 3813, 8297, t, 9301


Input: Consider Input: [3469, 'O', 'M', 6609, 9577, 'j', 2707, 9267, 'a', 'Z', 'Q', 3461, 'u', 'V', '5791', '1939', 't', 'B', 'Z', 'r', 'v', '4499', '4929', 'S', '3917', 'G', '5357', '9449', '8413', '8381', 'A', '2315', '2553', '5749', 'G', 'V', 'K', '4899', '8425', '937', '1877', '4943', 'e', 5997, 'e', 'q', 'x', 3285, 1197, 'z', 9411], [9093, 'U', 's', 6889, 1183, 1171, 5713, 'A', 8885, 6275, 'I', 'j', '5791', '1939', 't', 'B', 'Z', 'r', 'v', '4499', '4929', 'S', '3917', 'G', '5357', '9449', '8413', '8381', 'A', '2315', '2553', '5749', 'G', 'V', 'K', '4899', '8425', '937', '1877', '4943', 'H', 'M', 'K']

Output: 5791, 1939, t, B, Z, r, v, 4499, 4929, S, 3917, G, 5357, 9449, 8413, 8381, A, 2315, 2553, 5749, G, V, K, 4899, 8425, 937, 1877, 4943


Input: Consider Input: [4473, 1899, 'a', 'w', 'x', 's'], ['q', 5285, 'a', 'w', 'M', 8721]


Output: a, w