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

Input: Consider Input: [2975, 3781, 'D', 'd', 'K', 4033, '3783', 'n', 'k', '327', 't', '9871', '233', 's', 'e', 'P', 3411, 'J', 'e'], [4339, 2811, '3783', 'n', 'k', '327', 't', '9871', '233', 'l', 'f', 4263, 7913]

Output: 3783, n, k, 327, t, 9871, 233


Input: Consider Input: ['U', 2021, 9935, '873', 'T', '9883', 'y', 8789, 'v'], ['g', 7321, '873', 'T', '9883', 'p', 9721]

Output: 873, T, 9883


Input: Consider Input: ['d', 7867, 185, 261, 'H', 'X', 'j', 'O', 7805, 5991, '6109', 'Y', 'm', '7631', '2607', 'B', 'S', 'w', 'a', 'X', '2119', '5453', '4145', '9015', 'I', '8185', 'p', '8435', '5559', '7511', '2191', '7173', '3853', '4583', 'K', 'c', 9249, 6119, 5751, 'I', 1271, 8563, 'y', 'o', 'q', 7437, 925, 9587, 'v', 'R', 'm'], ['y', 'K', 8237, 5233, 9119, 'g', 7475, 1243, 't', 6377, '6109', 'Y', 'm', '7631', '2607', 'B', 'S', 'w', 'a', 'X', '2119', '5453', '4145', '9015', 'I', '8185', 'p', '8435', '5559', '7511', '2191', '7173', '3853', '4583', 'K', 'X', 'm', 'j', 'C', 'b', 7483, 4307, 'u', 'I', 6321, 'k', 3195, 'x', 2343, 'S', 'Z']


Output: 6109, Y, m, 7631, 2607, B, S, w, a, X, 2119, 5453, 4145, 9015, I, 8185, p, 8435, 5559, 7511, 2191, 7173, 3853, 4583, K