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

Input: Consider Input: ['E', 'V', 5783, 'G', 8167, 7189, 'I', 'A', '5987', 'd', 'u', '5069', 'v', 'i', '7725', '6567', '9085', '347', '4353', 'A', '5711', 'L', 'S', 'S', 'Z', '8949', 'X', 1807, 7157, 'S', 6831, 'T', 805, 'H', 2489, 'S', 'F', 7167, 'Q', 2907, 6863, 'k', 6843, 2527], ['R', 'y', 'k', 8823, 337, 1587, 'S', 'm', 5803, 'Q', 7073, 'A', '5987', 'd', 'u', '5069', 'v', 'i', '7725', '6567', '9085', '347', '4353', 'A', '5711', 'L', 'S', 'S', 'Z', '8949', 'S', 'O', 2883, 'o', 7283, 9175, 'G', 1287, 'u', 4403]

Output: A, 5987, d, u, 5069, v, i, 7725, 6567, 9085, 347, 4353, A, 5711, L, S, S, Z, 8949


Input: Consider Input: [5555, 'e', 'k', '4653', 'S', 'q', 'o', 'z'], [8655, 3981, 'k', '4653', 'S', 'q', 'k', 8991, 8619, 's']

Output: k, 4653, S, q


Input: Consider Input: ['H', 1953, 971, 'Z', 'M', 'T', 's', '2845', '3487', '7155', 'e', '7383', '1429', '5037', 'T', 'B', 'S', '7175', '7307', '9441', 'H', 6231], ['Z', 6955, 'f', 2949, 4035, 'u', 2453, 749, 'k', 'f', 'C', 'r', 'L', '2845', '3487', '7155', 'e', '7383', '1429', '5037', 'T', 'B', 'S', '7175', '7307', '9441', 'e', 'K', 'M', 913, 'W', 8975, 'u', 8713, 'L']


Output: 2845, 3487, 7155, e, 7383, 1429, 5037, T, B, S, 7175, 7307, 9441