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: ['P', 'E', 'w', 4729, 8995, 'z', 3939, '9711', '4699', 'c', '351', '7279', 'A', '719', 'j', '9659', '8455', '6859', 'E', '903', '1827', 'M', '3035', 'N', '2573', '4995', 'U', '8289', 'k', 'b', 'U', '1961', 'v', 1077, 153, 8063, 'h', 'k'], ['A', 2845, '9711', '4699', 'c', '351', '7279', 'A', '719', 'j', '9659', '8455', '6859', 'E', '903', '1827', 'M', '3035', 'N', '2573', '4995', 'U', '8289', 'k', 'b', 'U', '1961', 'h', 9115, 'v', 275, 'C', 7405, 4211, 'X', 'O', 'e', 'n', 2507, 875, 'o', 6189, 'g', 'k', 3781, 1027, 807, 'g', 7213]

Output: 9711, 4699, c, 351, 7279, A, 719, j, 9659, 8455, 6859, E, 903, 1827, M, 3035, N, 2573, 4995, U, 8289, k, b, U, 1961

Input: Consider Input: ['i', 'y', 'E', 3515, 'h', 'Z', 'L', 'F', 'Q', 3509, 2891, '9743', '433', '861', '7497', 'l', 'I', '5331', 'v', 'n', '9547', '61', 'k', '493', 'U', '1451', 'f', 'n', '8345', 'N', '1417', '3167', '7961', 'T', 's', '6913', 'P', '2475', '1039', 'f', 8415, 'r', 'm'], [5667, 9263, 'i', 2643, 6947, 6393, 'V', 713, 'c', 4299, 9037, 9097, 'k', 3341, 'Q', 'w', 'T', 6627, 7631, 4929, 9959, 's', 'A', '9743', '433', '861', '7497', 'l', 'I', '5331', 'v', 'n', '9547', '61', 'k', '493', 'U', '1451', 'f', 'n', '8345', 'N', '1417', '3167', '7961', 'T', 's', '6913', 'P', '2475', '1039', 'E', 'p', 'U', 'G', 9435, 957, 'N', 6629, 565, 25, 'e', 6019, 827, 8283, 'F', 'J', 'Z', 'g', 'f', 'F', 1299, 2479, 463, 't', 't', 8541, 4571]
Output: 9743, 433, 861, 7497, l, I, 5331, v, n, 9547, 61, k, 493, U, 1451, f, n, 8345, N, 1417, 3167, 7961, T, s, 6913, P, 2475, 1039