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

Input: Consider Input: [5701, 'Y', 2511, 4707, 'i', 9083, 1187, '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'X', 8863, 7467, 665, 3485, 4035, 'g', 8795], [189, 8331, 'N', 'S', 'U', '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'R', 't', 9581, 5575, 'Q', 'Q', 1209]

Output: 749, v, i, f, j, 5983, 4221, p, q, 8703, n, Z, O, A, H


Input: Consider Input: [2433, 'X', 8485, 1927, 2127, 8173, 7755, 4795, 4389, 1533, 'F', 'J', 'm', '815', 'i', '8555', '2391', 'M', 'c', 'c', 'h', '2677', '4129', 'y', '3999', 'n', 'Z', 'W', '9019', '5685', 'g', 'e', 'D', '3315', 'z', 'S', 'P', 75, 7819, 'j', 'm', 6861, 'R', 3931, 167, 9437, 'q', 5607, 'S', 5939, 'D', 'p', 'w', 689, 4265], [1169, 'I', 'E', 'Q', 9433, 99, 'S', 2367, 7367, 8127, 'I', 3203, 'f', 'n', 4635, 'J', 'm', '815', 'i', '8555', '2391', 'M', 'c', 'c', 'h', '2677', '4129', 'y', '3999', 'n', 'Z', 'W', '9019', '5685', 'g', 'e', 'D', '3315', 'E', 'J']

Output: J, m, 815, i, 8555, 2391, M, c, c, h, 2677, 4129, y, 3999, n, Z, W, 9019, 5685, g, e, D, 3315


Input: Consider Input: [2389, 1227, 'v', 2701, 5365, 'C', 'T', 4909, 'f', 5507, 'x', 4791, 9815, 'Y', '7579', 'F', 'M', '1193', 'L', '8619', '7713', '9917', '2751', '9845', '1395', '6667', 'd', 'F', '8595', 'U', '1891', '6595', 's', 'x', 'W', 'p', 'Z', 'j', '4475', 'j', '2077', 'G', 49, 9519, 7577, 9555, 283, 803, 8999, 'Z', 867, 9103, 'm', 'J', 'M', 'G', 7561, 179, 'Q', 9789, 163, 5773, 3305, 'w', 8611, 9897], ['r', 5979, 8571, 1269, 'p', 5027, 'w', 9363, 'j', 2449, '7579', 'F', 'M', '1193', 'L', '8619', '7713', '9917', '2751', '9845', '1395', '6667', 'd', 'F', '8595', 'U', '1891', '6595', 's', 'x', 'W', 'p', 'Z', 'j', '4475', 'j', '2077', 'P', 'e', 'z', 8561, 'g', 8125, 'a', 3265, 2003, 5175, 5873, 'L', 3443, 'K', 'Q', 5099, 8433, 8947, 397, 37, 889, 2105]


Output: 7579, F, M, 1193, L, 8619, 7713, 9917, 2751, 9845, 1395, 6667, d, F, 8595, U, 1891, 6595, s, x, W, p, Z, j, 4475, j, 2077