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: [5363, 'h', 3845, 6217, 2315, 'm', 'O', 5573, 4601, 7145, 9561, 'q', 'r', 'T', '619', 'r', '8913', '7507', '4527', '9313', '7813', '4297', '9581', '561', 'L', 'F', '9357', '5175', '1853', 'K', 'a', '8575', 'V', '8283', 'J', '5341', 'Y', 9545, 6705, 6445, 'X', 7149, 'B', 9079, 'P', 9337, 3641, 3731, 4837, 't'], [4089, 'f', 'A', 'q', 477, '619', 'r', '8913', '7507', '4527', '9313', '7813', '4297', '9581', '561', 'L', 'F', '9357', '5175', '1853', 'K', 'a', '8575', 'V', '8283', 'J', '5341', 'q', 't', 'g', 'T', 8621, 'Z', 'L', 'd', 9207, 5705, 'Z', 'l', 'I', 'Z', 1141, 9949, 867, 'H', 'E', 3605, 3617, 331]

Output: 619, r, 8913, 7507, 4527, 9313, 7813, 4297, 9581, 561, L, F, 9357, 5175, 1853, K, a, 8575, V, 8283, J, 5341

Input: Consider Input: ['r', 5197, 119, 7019, 1731, 'z', 5341, 9727, 'D', 4283, 'n', 4349, 'M', '4177', '7025', '9115', 'W', '8281', 'Z', 'R', 'm', 'm', '5907', '6231', 'w', '3823', '8069', '2767', '1653', '1297', 'f', 'f', 423, 4819], [6421, 5043, 'B', 4723, 'M', '4177', '7025', '9115', 'W', '8281', 'Z', 'R', 'm', 'm', '5907', '6231', 'w', '3823', '8069', '2767', '1653', '1297', 'M', 'F', 2641, 'd', 'T', 1303]
Output: M, 4177, 7025, 9115, W, 8281, Z, R, m, m, 5907, 6231, w, 3823, 8069, 2767, 1653, 1297