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

Input: Consider Input: [7963, 1119, 5983, 1201, 'f', 7721, 'l', 6831, '369', 'h', 'P', '9609', 'C', 'N', 'v', 'J', '8213', 'Q', '6733', 'S', '3587', 'F', '2917', '1601', 'w', 'z', 'b', '7237', '6995', '1907', 'S', 'i', 'X', 5925, 'R', 'm', 6883, 'S', 'J', 's', 'U', 'G', 7225, 7405], ['P', 3151, 'V', 347, 6187, 9261, 867, 'd', 3727, 4495, 'L', 'k', 1911, 'k', 'v', 'T', '369', 'h', 'P', '9609', 'C', 'N', 'v', 'J', '8213', 'Q', '6733', 'S', '3587', 'F', '2917', '1601', 'w', 'z', 'b', '7237', '6995', '1907', 'S', 'A', 3797, 7567, 7617, 'E', 7683, 'd', 'K', 1795, 5667, 'y', 4005, 567, 8429]

Output: 369, h, P, 9609, C, N, v, J, 8213, Q, 6733, S, 3587, F, 2917, 1601, w, z, b, 7237, 6995, 1907, S


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: [4893, 3307, 'M', 'N', 223, 2591, 6201, 97, 7111, 'g', 4775, 'J', 'H', '275', 'f', '8841', '533', 'p', 'Z', '8833', 'w', 'M', 'R', '5173', 'N', 'C', 'f', 'q', '8917', '5749', '3667', 'S', 8293, 'q', 'h', 'l', 'u', 5123, 2777, 6295, 'e', 'M', 7409, 'A', 'l', 'K'], [6137, 'S', 'v', 'D', 'm', 4751, 't', 'J', 'H', '275', 'f', '8841', '533', 'p', 'Z', '8833', 'w', 'M', 'R', '5173', 'N', 'C', 'f', 'q', '8917', '5749', '3667', 'l', 9211, 9187, 2297, 7383, 'S', 'h', 'M', 5863, 'v', 569]


Output: J, H, 275, f, 8841, 533, p, Z, 8833, w, M, R, 5173, N, C, f, q, 8917, 5749, 3667