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

Input: Consider Input: ['U', 1887, '8423', 'j', '8053', 'g', '5441', 'H', 'j', 3847, 'd', 'J', 1971, 'M'], ['y', 'T', 'C', 'z', 6299, 5393, '8423', 'j', '8053', 'g', '5441', 'H', 'x', 'f', 4189, 'h', 'e', 6577]

Output: 8423, j, 8053, g, 5441, H


Input: Consider Input: ['p', 'C', 6777, 'P', 'd', 4619, 'l', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'U', 'C', 'G', 'm'], ['U', 5295, 'O', 'F', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'W', 'C', 'I', 'K', 5891]

Output: 4333, 9491, V, 5745, P, 9255, 9439, 8461, D, L, w, R


Input: Consider Input: ['I', 6761, 1707, 2465, 'F', 4831, 'F', 5355, 1829, 8245, 4213, 6169, 'f', 9363, 'U', 'e', 7961, 'w', 'k', 'D', 7399, 'c', 'e', '5297', '6959', 'D', 'H', 'L', 'C', '6393', '1419', 'i', 't', 'Y', 'k', '3519', '7489', '7101', '7487', '9583', 'n', '4411', '7361', 'p', 5343, 'b', 'C', 8549, 'I', 'M', 'X', 6955, 69, 'x', 'I'], [899, 8501, 'Y', 'N', 2427, 8473, 9903, 3241, 'q', 'M', 'E', 'c', 'e', '5297', '6959', 'D', 'H', 'L', 'C', '6393', '1419', 'i', 't', 'Y', 'k', '3519', '7489', '7101', '7487', '9583', 'n', '4411', '7361', 'D', 'r', 'h', 'Y']


Output: c, e, 5297, 6959, D, H, L, C, 6393, 1419, i, t, Y, k, 3519, 7489, 7101, 7487, 9583, n, 4411, 7361