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

Input: Consider Input: [8039, 4457, 'z', 3519, 'q', 'T', 'k', 'b', 'H', 'W', 'H', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'd', 1527, 'o', 1393, 't', 7653], ['g', 2437, 'm', 'b', 2347, 'Q', 6719, 2049, 6643, 'B', 6919, 1873, 'K', 9319, 6729, 'Z', 'E', 8011, 7953, 'M', 1121, 'k', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'o', 1481, 867, 'B', 29]

Output: 5561, 1389, 6389, 6923, 339, Q, 5837, D, z, F, 4743, 7197, 1407, 9711, 4355, 4027, 2219, w, S, Z, f, 4091, 2571


Input: Consider Input: [5381, 'H', 'w', 9281, 3195, 2609, 'v', 'q', 'O', 10019, 'Q', 'K', 'c', 'J', 'A', 'a', 313, 5517, '3007', '1737', 'F', 'a', '4559', '3987', '6211', 'v', '5531', '9565', '1705', '7747', '8567', '5965', '4195', 'p', '2775', 'g', 'K', 'n', 'B', 'U', 'T', '8995', 'c', '2831', 'n', 'Q', 'l', '6749', 'z', 4391, 'Z', 3229, 'f', 'z', 6131, 'm', 'U', 5825], [6363, 6625, 'f', 7841, 'J', 'j', 993, 'p', 'f', 'X', 'j', 361, 4325, 'a', 649, '3007', '1737', 'F', 'a', '4559', '3987', '6211', 'v', '5531', '9565', '1705', '7747', '8567', '5965', '4195', 'p', '2775', 'g', 'K', 'n', 'B', 'U', 'T', '8995', 'c', '2831', 'n', 'Q', 'l', '6749', 'G', 6719, 2367, 9155, 'B', 7493, 9415, 'j', 'k', 'j', 'v', 'k', 'Z', 9021, 'f', 'x', 3213, 'p', 3453, 'w']

Output: 3007, 1737, F, a, 4559, 3987, 6211, v, 5531, 9565, 1705, 7747, 8567, 5965, 4195, p, 2775, g, K, n, B, U, T, 8995, c, 2831, n, Q, l, 6749


Input: Consider Input: ['U', 'f', 1721, 'f', 2533, 'F', '4641', '3027', '6313', 'r', '9149', '2335', '6679', '3545', '6821', 'P', '2935', 'H', 'V', 2709, 'k', 'j', 6607, 'X', 8009, 3633, 'j', 1201, 'k', 7649, 'R'], [5395, 4969, 1031, 'H', 'u', 'D', 5497, 'J', 'Z', 4193, 5391, 145, 'F', '4641', '3027', '6313', 'r', '9149', '2335', '6679', '3545', '6821', 'P', '2935', 'H', 'O', 'D', 2439, 'D', 'g', 971, 7737]


Output: F, 4641, 3027, 6313, r, 9149, 2335, 6679, 3545, 6821, P, 2935, H