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

Input: Consider Input: [1231, 'a', 9367, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'e', 6603, 'm', 8145, 'L', 's', 1273, 9291, 'X'], [5773, 'D', 'W', 'F', 5987, 'D', 'H', 2095, 'I', 'X', 29, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'C', 'a']

Output: 155, r, 1473, 5679, 3161, L, e, b, m, 9427, 2001, 5293, 3487, K, 6467, S


Input: Consider Input: [9945, 7993, 'D', 'C', 1341, 'S', 3245, 'v', 'R', 'a', 'Y', 'm', 'j', 'S', 2325, 7293, 8483, '2185', 'X', '5509', 'v', 'Q', '1557', '2811', '3957', '431', '2403', '9633', 'H', 'd', 'h', 'u', 'P', '3647', 't', '8345', '8157', 'a', '4759', '3097', 'o', 5889, 'c', 2547, 'q', 9407, 'M', 'O'], [2017, 'P', 9637, 7239, '2185', 'X', '5509', 'v', 'Q', '1557', '2811', '3957', '431', '2403', '9633', 'H', 'd', 'h', 'u', 'P', '3647', 't', '8345', '8157', 'a', '4759', '3097', 'Y', 'O', 'U', 495, 'U', 3945, 'h', 9439, 6821, 7583, 6249, 573, 'v', 'T', 2219, 3279]

Output: 2185, X, 5509, v, Q, 1557, 2811, 3957, 431, 2403, 9633, H, d, h, u, P, 3647, t, 8345, 8157, a, 4759, 3097


Input: Consider Input: [41, 'V', 4639, 'v', 8991, 'k', 'E', 'e', 'A', 519, 5431, 'r', 8709, 6575, 'h', 'U', 'C', 5471, 'z', 1031, 'R', 'W', 6435, 4551, 5085, 'q', '467', '4529', 'S', '1241', '9909', 'i', 'q', '4147', '1513', '6479', 'T', '1407', '8125', 'p', 'Z', 'U', '8819', 'i', '3179', '6769', 'd', '4699', 'c', 'L', '6073', 'n', 5195, 'O'], ['n', 'X', 1419, 9003, 7509, 'V', 10001, 6213, 'N', 'x', 'q', '467', '4529', 'S', '1241', '9909', 'i', 'q', '4147', '1513', '6479', 'T', '1407', '8125', 'p', 'Z', 'U', '8819', 'i', '3179', '6769', 'd', '4699', 'c', 'L', '6073', 'o', 5403, 1043, 'm', 'h', 'w', 'R', 'O', 'L', 3259, 3343, 3699, 9873, 8509, 3833, 9337, 5621, 8585, 5787, 'w', 'o', 't', 'V', 'b']


Output: q, 467, 4529, S, 1241, 9909, i, q, 4147, 1513, 6479, T, 1407, 8125, p, Z, U, 8819, i, 3179, 6769, d, 4699, c, L, 6073