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

Input: Consider Input: [4163, 'p', 'Z', 'i', 'r', 9525, 'c', 'C', 'L', 'J', 'L', '3441', 'W', '2257', '7885', '873', 'e', 'a', 'N', '2853', 'K', 'R', '5531', 'h', 'p', 'u', 'b', '6003', 'q', 'H', '6641', '9991', 'w', 6457, 'P', 1517, 6975, 2465, 'Y', 425, 'n', 375, 'O', 7707, 1105, 1985, 6149, 'l', 5761, 875, 4411], [2127, 9083, 'w', 'Z', 4071, 5347, 'r', 'J', 'L', '3441', 'W', '2257', '7885', '873', 'e', 'a', 'N', '2853', 'K', 'R', '5531', 'h', 'p', 'u', 'b', '6003', 'q', 'H', '6641', '9991', 'o', 'K', 1639, 'Z', 13, 'm', 'M', 'G', 'C', 353]

Output: J, L, 3441, W, 2257, 7885, 873, e, a, N, 2853, K, R, 5531, h, p, u, b, 6003, q, H, 6641, 9991

Input: Consider Input: [2799, 'R', 's', '9885', 's', 'c', '7143', 'H', '445', 'F', 9229, 'B', 5169, 'T', 's'], [109, 'u', 'f', 2303, 1495, 5041, '9885', 's', 'c', '7143', 'H', '445', 'v', 7261]

Output: 9885, s, c, 7143, H, 445

Input: Consider Input: ['L', 5293, 'I', 4887, 'z', 8889, 6613, '4419', '6989', 'l', 'G', '9819', 'l', '4531', '7541', 'T', 'M', 'j', '7189', '7359', '3737', '5323', 'e', '9955', '5631', 'j', 8451, 7955, 167, 'r', 'h', 627, 'z', 8049, 6719, 5867, 8295], [2919, 2047, 6461, 'd', 'o', 8919, 'A', 'N', '4419', '6989', 'l', 'G', '9819', 'l', '4531', '7541', 'T', 'M', 'j', '7189', '7359', '3737', '5323', 'e', '9955', '5631', 'S', 'h', 3729, 7207, 1161, 'k']
Output: 4419, 6989, l, G, 9819, l, 4531, 7541, T, M, j, 7189, 7359, 3737, 5323, e, 9955, 5631