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

Input: Consider Input: [4803, 'S', 6357, 7491, 8573, 'O', 9721, 'j', 6491, 'Y', 2083, 8345, 893, 'N', 953, '4031', 'q', 'i', '5741', 'u', '5545', 'Z', 'h', 'a', 'q', 'B', 'V', '4963', '1073', '597', 'h', 'T', '7285', 'Z', '471', '6717', '8125', '5031', 'd', 'a', 'j', 'R', 'F', 8959, 't', 2649, 'T', 6075, 'K', 2981, 'Q', 9069, 'S', 5253, 3581, 8697, 5461, 9309, 2107, 'D', 617], ['R', 'Z', 5655, 7575, 'Q', 'f', 'U', '4031', 'q', 'i', '5741', 'u', '5545', 'Z', 'h', 'a', 'q', 'B', 'V', '4963', '1073', '597', 'h', 'T', '7285', 'Z', '471', '6717', '8125', '5031', 'J', 'w', 'V', 'T', 1243, 3949, 7619, 3707, 'd', 'C', 'd', 'B', 4657, 'U', 'c', 5465, 6961, 'x', 'L', 'e', 'j']

Output: 4031, q, i, 5741, u, 5545, Z, h, a, q, B, V, 4963, 1073, 597, h, T, 7285, Z, 471, 6717, 8125, 5031

Input: Consider Input: ['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']

Output: 997, n, 631, 527, E, A, n, n, G, 1197, R, L

Input: Consider Input: [147, 'y', 9855, 'V', '7047', 'N', '5899', 'P', '9343', 'D', '7927', 'i', '641', 'k', '3305', '5205', 'O', '1385', 'H', '5697', '7009', '1389', 'l', '9211', '5705', '5451', '1867', '3597', 'N', '5625', 'C', '1429', 'm', 'P', 'c', 8803, 7429, 's', 465, 'U', 2021, 5057, 'Y', 'z', 3181, 'B', 'I', 'C', 'l', 'S', 'y', 1197, 'v', 7495, 9083, 1973, 'a', 'M'], ['I', 889, '7047', 'N', '5899', 'P', '9343', 'D', '7927', 'i', '641', 'k', '3305', '5205', 'O', '1385', 'H', '5697', '7009', '1389', 'l', '9211', '5705', '5451', '1867', '3597', 'N', '5625', 'C', '1429', 'm', 'P', 'v', 'B', 'a', 'M', 'N', 9737, 'h', 'M', 4691, 6479, 'x', 2783, 's']
Output: 7047, N, 5899, P, 9343, D, 7927, i, 641, k, 3305, 5205, O, 1385, H, 5697, 7009, 1389, l, 9211, 5705, 5451, 1867, 3597, N, 5625, C, 1429, m, P