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

Input: Consider Input: ['B', 'f', 'Y', 'r', 4391, 'B', '6995', '7077', 'p', '3191', 'M', 1379, 5473], [3689, 'g', 5189, 'w', 4837, 'B', '6995', '7077', 'p', '3191', 'B', 9145]

Output: B, 6995, 7077, p, 3191


Input: Consider Input: [4385, 'a', 2073, 5621, 'A', 'n', 1919, 1673, 'x', 'v', 'v', 'V', 'h', 'J', '671', '3329', 'b', 'B', 'q', 'f', 'l', '6501', '3425', 'b', '3083', '4541', 'Q', 'p', 'z', 't', 'N', 7057, 'd', 'Y', 'f', 3249, 699, 'x', 1555, 'l', 4749], ['b', 'r', 's', 'v', 'v', 'V', 'h', 'J', '671', '3329', 'b', 'B', 'q', 'f', 'l', '6501', '3425', 'b', '3083', '4541', 'Q', 'p', 'I', 'b', 6909, 'U', 5563, 987]

Output: v, v, V, h, J, 671, 3329, b, B, q, f, l, 6501, 3425, b, 3083, 4541, Q, p


Input: Consider Input: ['S', 'T', 8773, 1641, 'h', 'e', 1009, 'N', 'i', 1309, 'N', 9833, 'G', 'S', 1589, 'G', 'G', 7311, 'j', 'z', 'N', '2865', 'o', '1783', 'e', '1235', 'v', '4085', '4393', 'W', 'z', '5543', '8973', '2311', '5919', 'a', 'r', '3623', '9429', '2463', 'k', '5165', '2727', 'M', 'O', 8671, 4751, 8743, 9621, 'A', 'i', 6627, 'S'], ['f', 5295, 'm', 'U', 'h', 7867, 7525, 577, 'z', 6579, 'K', 'j', 'Q', 'q', 9063, '2865', 'o', '1783', 'e', '1235', 'v', '4085', '4393', 'W', 'z', '5543', '8973', '2311', '5919', 'a', 'r', '3623', '9429', '2463', 'k', '5165', '2727', 'M', 'K', 'y', 7137, 'u', 'h', 'e']


Output: 2865, o, 1783, e, 1235, v, 4085, 4393, W, z, 5543, 8973, 2311, 5919, a, r, 3623, 9429, 2463, k, 5165, 2727, M