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

Input: Consider Input: [4961, 'H', 9957, 'w', 'K', 'Y', 3375, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'y', 2753, 2989, 6093, 7091, 8043, 'c'], [9279, 'S', 6127, 5845, 237, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'w', 9497, 'K', 2297]

Output: S, 3191, 4439, C, 1965, 2787, 4507


Input: Consider Input: [337, 2045, 613, 'P', 89, 10003, 'q', 'b', 'n', 6479, 'Y', 'm', 5259, 'c', 9101, 7599, 6353, 5467, 'O', 'U', 'N', 7841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'N', 'w', 7365, 'W', 981, 245, 8933, 'h', 4477, 1395, 'J', 8069, 5313, 'J', 709, 3533, 'b', 8629, 'G', 'P', 'Y', 5397], [3017, 1679, 'O', 'p', 2983, 9493, 4763, 'P', 'Q', 'd', 139, 'i', 2459, 'G', 'c', 299, 'Q', 'Z', 1841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'q', 'k', 825, 'D', 't', 'j', 'T', 6747, 'q', 7211, 'i', 1557, 'f', 7917, 'R', 1325, 6801, 'T', 'Q', 2305, 's', 'K', 'R', 2877, 'p']

Output: S, S, 6141, p, 9427, U, 1347, I, 5193, O, N, s, 1617, e, 2297, X, y, e, 507, R, a, E, q, 4953, 729, T, w, 7017, 8647


Input: Consider Input: ['S', 's', 'O', 'A', 't', 'W', 5901, 'g', '289', '1083', 'C', 'I', '1687', '963', 'f', '9293', '6227', '6273', '8955', '3071', 'c', '5027', '2087', 'g', '10005', '9061', '1437', '4501', '7421', '3469', 'J', '9611', 't', 'w', '671', '2993', '8881', 'f', 'u', 2031, 3549, 'i', 9047, 4321, 'P', 4319, 'y', 5573, 'a', 8821, 6331, 'q', 4785, 2169], ['i', 'F', 'Q', 'U', 'W', 'T', 'V', 6297, 'T', 8997, 1335, 'A', 'i', 1807, 1187, 2357, 7953, 7985, 2753, 2349, 7777, 'p', 6607, 's', 2375, 'z', 'm', 'W', 'g', '289', '1083', 'C', 'I', '1687', '963', 'f', '9293', '6227', '6273', '8955', '3071', 'c', '5027', '2087', 'g', '10005', '9061', '1437', '4501', '7421', '3469', 'J', '9611', 't', 'w', '671', '2993', '8881', 'A', 6193, 6029, 'K', 'p', 't', 6585, 'v', 9173, 4961, 635, 913, 2701, 425, 'P', 'o', 'W', 5429, 6145, 4745]


Output: g, 289, 1083, C, I, 1687, 963, f, 9293, 6227, 6273, 8955, 3071, c, 5027, 2087, g, 10005, 9061, 1437, 4501, 7421, 3469, J, 9611, t, w, 671, 2993, 8881