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

Input: Consider Input: [4183, 'U', 7363, 'G', 'p', 'm', 5967, 7979, 'o', 6465, 1603, 'a', 'U', 539, 'V', 867, 'z', '9291', '3659', 'X', '9869', 'S', '7001', '347', 'F', '1433', 'c', 'J', '6113', 'H', 'd', 'J', '8705', 'P', 1783], [4781, 4033, 'M', 'W', 4561, 'Z', 'z', '9291', '3659', 'X', '9869', 'S', '7001', '347', 'F', '1433', 'c', 'J', '6113', 'H', 'd', 'J', '8705', 's', 4093, 201, 'i', 'Y', 'S', 2227, 'C', 5375, 1627]

Output: z, 9291, 3659, X, 9869, S, 7001, 347, F, 1433, c, J, 6113, H, d, J, 8705

Input: Consider Input: [6397, 'W', 'k', 'v', 'E', '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'N', 1329, 5233, 'U', 2563, 'L', 8547], [1857, 'F', 'g', 8381, 165, 'o', 7009, 5455, '1941', '2295', 'q', '1357', '2041', '5263', '7781', 'w', 'X', 'g']

Output: 1941, 2295, q, 1357, 2041, 5263, 7781, w

Input: Consider Input: ['d', 5733, 'B', 'x', 'S', 9869, 8963, 3793, 'R', 'o', 'c', 5025, 2647, 'I', 'w', 's', '637', '4657', 'D', '8359', 'j', '5893', 'V', 'X', 'Q', '8713', 'r', 'K', 'F', '2017', '6015', '4643', 'Q', '1977', '6177', '1715', '9655', 'I', '4403', 'W', '9007', 'O', 'x', 'C', 'L', 8785, 7449, 3159, 5375, 'l', 9603, 'V', 'F', 'T', 1799, 'Z', 'S', 1395, 2063, 'y', 'n'], [9951, 57, 341, 191, 2263, 'z', 'k', 981, 'D', 'n', 's', '637', '4657', 'D', '8359', 'j', '5893', 'V', 'X', 'Q', '8713', 'r', 'K', 'F', '2017', '6015', '4643', 'Q', '1977', '6177', '1715', '9655', 'I', '4403', 'W', '9007', 'e', 1301, 'N', 'k', 5327, 4905, 'S']
Output: s, 637, 4657, D, 8359, j, 5893, V, X, Q, 8713, r, K, F, 2017, 6015, 4643, Q, 1977, 6177, 1715, 9655, I, 4403, W, 9007