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

Input: Consider Input: [1307, 'u', 'Z', 3323, 191, 'i', 'h', 't', 'L', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'C', 'M', 'y', 'h', 7985, 9989, 'j'], [2817, 1955, 2973, 'Y', 9221, 'z', '8549', '7861', '9747', '3985', 'g', 'r', '1247', 'R', 'S', 'a', 'a', '749', 'G', 'M', 2083, 'O']

Output: 8549, 7861, 9747, 3985, g, r, 1247, R, S, a, a, 749


Input: Consider Input: ['o', 5261, 'R', 8999, 'G', 1965, 3921, 9539, 5343, 'c', 6119, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'S', 6387, 'u'], ['B', 'X', 319, 1715, '4617', '7787', 'P', '295', 'U', '1429', '7667', 'G', '8607', 'R', '7375', 'E', 'R', 'T', 'Q', 3169, 'x', 'L', 'Q', 1161, 5639]

Output: 4617, 7787, P, 295, U, 1429, 7667, G, 8607, R, 7375, E, R


Input: Consider Input: [1613, 9803, 'R', 1657, 'K', 'M', '6193', 'M', '641', '5253', 'U', '927', '1555', 'M', 'U', 'm', 'q', '8727', '9037', '3889', 'Z', '4347', 'g', 'A', 'o', 't', 'F', 'E', 'C', 'g', '2517', 'D', 'H', 3835, 3659, 1073, 'I', 's', 'h', 9137, 'f', 2687, 'A', 8541, 3875], [597, 4905, 6715, 'K', 'M', '6193', 'M', '641', '5253', 'U', '927', '1555', 'M', 'U', 'm', 'q', '8727', '9037', '3889', 'Z', '4347', 'g', 'A', 'o', 't', 'F', 'E', 'C', 'g', '2517', 'D', 'c', 559]


Output: K, M, 6193, M, 641, 5253, U, 927, 1555, M, U, m, q, 8727, 9037, 3889, Z, 4347, g, A, o, t, F, E, C, g, 2517, D