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

Input: Consider Input: [319, 1325, 9567, 'M', 'm', 1759, 't', 'Z', 'X', 7981, 2409, 5023, 'b', '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'I', 5289, 1221, 'k', 5727, 5411, 7127, 'F', 'J', 'o', 7587, 'm', 237, 415, 8413, 'j'], ['O', 5043, '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'v', 5793]

Output: 8661, 6609, 8213, Y, 9541, 8065, M, 8267, V, K, 3217, 1111, 1411, u, 9705, V, U, 3171, 4195, Z, t, p

Input: Consider Input: ['x', 'T', 'K', 'i', 935, 's', 209, 6485, 7803, 'Z', 'Q', 'H', 'u', '5629', '7573', '4679', '73', '6729', '1943', 'Y', 'b', '1595', 'R', '1475', '9785', '3773', '4077', '2189', 'r', 'd', '9613', 'L', 'S', '6619', '9039', '7557', '999', 'F', 'N', 'p', 9815, 'Q', 'u', 'U', 1559, 'Y', 'z', 'i', 3473, 's', 7251, 5303, 'k', 'u'], [9843, 'H', 3903, 6499, 'y', 'u', 'v', 'i', 'p', 8877, 27, 'Z', 6151, 5793, 'F', 'u', 'K', 'f', 'F', 8005, 'r', 4323, 2093, '5629', '7573', '4679', '73', '6729', '1943', 'Y', 'b', '1595', 'R', '1475', '9785', '3773', '4077', '2189', 'r', 'd', '9613', 'L', 'S', '6619', '9039', '7557', '999', 'F', 'O', 'u', 'J']

Output: 5629, 7573, 4679, 73, 6729, 1943, Y, b, 1595, R, 1475, 9785, 3773, 4077, 2189, r, d, 9613, L, S, 6619, 9039, 7557, 999, F

Input: Consider Input: [9779, 893, 'W', 'y', '6021', 'i', 'v', '3063', '9863', '1039', '3097', 'h', 'H', '7345', 'J', '377', 'v', 'X', 'z', 'T', 'x', '4797', 'f', 'm', '5597', '95', 'Z', 3199, 4123, 'z', 3849, 1227, 'd', 4199, 6941, 'c', 't', 'Q', 'o', 'n', 'z', 'p', 6179], [8361, 2297, 9465, 'y', 2631, 2129, 'V', 3491, 1295, 7935, 'O', 'b', 9303, 'P', 'w', '6021', 'i', 'v', '3063', '9863', '1039', '3097', 'h', 'H', '7345', 'J', '377', 'v', 'X', 'z', 'T', 'x', '4797', 'f', 'm', '5597', '95', 'V', 4353, 'b', 4231, 1475]
Output: 6021, i, v, 3063, 9863, 1039, 3097, h, H, 7345, J, 377, v, X, z, T, x, 4797, f, m, 5597, 95