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

Input: Consider Input: ['q', 6247, 7691, 'M', 'i', 3857, 'J', '249', 'j', '3315', 'Y', 'q', 'K', 'B', 'h', 'M', 'i', '3947', '8559', '1833', 'q', 'x', '1469', '7579', '421', 'F', 'y', 'c', '9043', 'r', 'N', 'O', 'N', 'Z', 'a', 8713, 'a', 2717, 'y', 'l', 't', 1815, 9507, 1713, 'N'], ['Z', 7463, 6215, 'r', 43, 'h', 3841, 9317, 'J', 'x', 6735, 'b', '249', 'j', '3315', 'Y', 'q', 'K', 'B', 'h', 'M', 'i', '3947', '8559', '1833', 'q', 'x', '1469', '7579', '421', 'F', 'y', 'c', '9043', 'r', 'N', 'O', 'N', 'Z', 'Q', 'c', 'B', 9989, 'd', 875, 1185, 7121, 5559, 'k', 2289]

Output: 249, j, 3315, Y, q, K, B, h, M, i, 3947, 8559, 1833, q, x, 1469, 7579, 421, F, y, c, 9043, r, N, O, N, Z


Input: Consider Input: ['e', 167, 4283, 'l', 247, 4197, 3397, 'Z', 'F', 2835, 4273, 'F', '4769', '6831', '5497', 'Z', 'g', 'Y', '2003', '2851', '9303', '6173', 'P', 'U', 'G', 'X', 7049, 'q'], ['z', 'p', 'L', 'A', 'o', 391, 'F', '4769', '6831', '5497', 'Z', 'g', 'Y', '2003', '2851', '9303', '6173', 'I', 8741, 3159, 't']

Output: F, 4769, 6831, 5497, Z, g, Y, 2003, 2851, 9303, 6173


Input: Consider Input: [3525, 'l', '5451', '8707', 'u', '197', '4319', '2941', 'g', 'B', 'Q', '9469', 'i', '5003', 'q', 'W', 'r'], ['G', 4913, 'F', 'l', 4285, 'i', 1367, 8791, 'U', 'P', '5451', '8707', 'u', '197', '4319', '2941', 'g', 'B', 'Q', '9469', 'i', '5003', 'O', 6093, 2781, 5785, 'B', 6841, 'y', 'P', 4893, 701, 'n', 'U']


Output: 5451, 8707, u, 197, 4319, 2941, g, B, Q, 9469, i, 5003