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

Input: Consider Input: [9577, 'v', 2595, 7901, 5205, 'Z', 2647, 'm', 't', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'i', 9823, 5731, 'd', 'u', 1461, 'Z', 9415, 541, 'T', 'A', 'G', 7275], [9731, 4061, 'V', 'k', 9589, 'v', 'k', 7917, 'x', 'B', 'z', 31, 'K', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'n', 'J', 'g', 8859, 195, 'l']

Output: h, 6209, 6325, B, 8879, 1137, 7837, 1819, S, 2249, i, L, 3729

Input: Consider Input: ['d', 6717, 1947, 'n', 8773, 'E', 7607, 1719, 6751, 'L', 't', '3149', 'y', '7897', 'L', 'J', '9557', '6413', 'H', 'q', '3055', '5967', '9411', '7869', '8277', '7533', 'H', '9713', '5981', 'a', '2937', 'k', 7289, 9515, 'G', 'q'], ['W', 8869, 't', 3453, 9177, 'G', 'M', 5171, 'O', 'C', 5097, 'H', 'M', 'U', 4167, 3051, 7487, 7483, 4945, '3149', 'y', '7897', 'L', 'J', '9557', '6413', 'H', 'q', '3055', '5967', '9411', '7869', '8277', '7533', 'H', '9713', '5981', 'a', '2937', 'C', 9799, 6659, 's', 6881, 'w']

Output: 3149, y, 7897, L, J, 9557, 6413, H, q, 3055, 5967, 9411, 7869, 8277, 7533, H, 9713, 5981, a, 2937

Input: Consider Input: ['z', 'X', 9459, 5971, 'g', 5967, 'd', 'D', 'C', 'H', 'k', 'K', '8057', 'I', 'c', '9997', 'V', 'u', 'P', '1393', '9563', 'W', 'D', '7033', '231', '2313', 'S', '3815', 'v', '9257', 'L', 'O', 'o', 'j', 'z', 4703, 'X'], [1955, 7731, 'B', 'y', 'H', 'k', 'K', '8057', 'I', 'c', '9997', 'V', 'u', 'P', '1393', '9563', 'W', 'D', '7033', '231', '2313', 'S', '3815', 'v', '9257', 'L', 'O', 'o', 'j', 'N', 4431, 'N', 469, 'Y', 5175, 613, 't', 2827, 3709]
Output: H, k, K, 8057, I, c, 9997, V, u, P, 1393, 9563, W, D, 7033, 231, 2313, S, 3815, v, 9257, L, O, o, j