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

Input: Consider Input: [7667, 5143, 'T', 'E', 'T', 'q', 'Q', 'i', 'c', 'A', 7503, '3605', 'c', 'c', '9759', '4535', '2651', 'M', 'f', 'm', '1859', '1089', '8417', '6247', 'B', '167', '2481', '5505', 'r', '7913', 'L', '9891', 'Z', '9983', 't', 'B'], ['M', 'S', 'J', 7313, 2291, 'e', 'T', 's', 'Q', 9505, 2219, 7845, 'K', 2339, 2553, 6137, 'j', 's', 6735, 7595, '3605', 'c', 'c', '9759', '4535', '2651', 'M', 'f', 'm', '1859', '1089', '8417', '6247', 'B', '167', '2481', '5505', 'r', '7913', 'L', '9891', 'Z', '9983', 'M', 'v', 'B', 8189, 4919, 9041, 4579, 'V']

Output: 3605, c, c, 9759, 4535, 2651, M, f, m, 1859, 1089, 8417, 6247, B, 167, 2481, 5505, r, 7913, L, 9891, Z, 9983


Input: Consider Input: [1875, 'T', 'Y', '5527', 'F', 'y', '5669', 'm', 'k', 2655, 8089], [3997, 7707, 9937, 'M', '5527', 'F', 'y', '5669', 'm', 'a', 'e']

Output: 5527, F, y, 5669, m


Input: Consider Input: [2709, 8463, 2975, 1529, 'N', '9457', '2753', '2781', '7991', 'M', 'H', 'r', 'm', 'k', 'o', '977', '979', '4437', '3489', 'r', 'R', 'h', '1513', '6331', 'v', '5361', '2439', 'r', 'A', 'z', 'q', 'U', 't', 5789, 1957, 'K', 8291, 9631, 929, 743], ['W', 1663, 'G', 1633, 'P', 'e', 'F', 427, 'r', 8231, 7047, 'R', 829, 9437, 1837, 219, 9439, '9457', '2753', '2781', '7991', 'M', 'H', 'r', 'm', 'k', 'o', '977', '979', '4437', '3489', 'r', 'R', 'h', '1513', '6331', 'v', '5361', '2439', 'r', 'A', 'V', 'R', 443, 'r', 45, 8027, 'K', 9201, 7829, 3613, 'j', 'j']


Output: 9457, 2753, 2781, 7991, M, H, r, m, k, o, 977, 979, 4437, 3489, r, R, h, 1513, 6331, v, 5361, 2439, r, A