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

Input: Consider Input: ['K', 4691, 'I', '2495', '1015', 'L', '581', 'b', 9477], ['k', 2419, 'd', 'I', '2495', '1015', 'L', '581', 'r', 's', 6673, 5755]

Output: I, 2495, 1015, L, 581


Input: Consider Input: [2945, 6951, 2771, 'k', 'G', '7377', 'd', 'a', 'p', 'J', 'c', 'R', '6641', 'a', '2235', '3033', '3189', '7299', 'h', 'T', '5111', 'k', 'd', 4197, 'j', 'p', 'z', 1911, 'w', 6663, 7993, 5973, 3193, 7387, 'h', 'e', 8663, 2715], ['U', 'a', 'f', 7179, 7859, 'C', 6081, 2069, 3459, 'm', 'w', 'k', 'q', 'k', 'G', '7377', 'd', 'a', 'p', 'J', 'c', 'R', '6641', 'a', '2235', '3033', '3189', '7299', 'h', 'T', '5111', 'k', 'e', 'v', 'f', 5943, 8771, 'K', 'i', 'c', 'x', 7745, 'F', 'x', 3855, 'S', 5113, 1205]

Output: k, G, 7377, d, a, p, J, c, R, 6641, a, 2235, 3033, 3189, 7299, h, T, 5111, k


Input: Consider Input: ['w', 3897, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'P', 'C', 'z', 5141, 1751, 6731, 'r'], ['B', 8071, 703, 'G', 885, 'Z', 2391, 1749, 4177, 'U', 'a', '455', '6499', '8975', '9003', 'O', 'j', 'T', 'D', 8751, 'y', 2941]


Output: U, a, 455, 6499, 8975, 9003, O, j, T