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

Example Input: ['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]
Example Output: 5747, i, M

Example Input: [5179, 's', 7203, 4301, 3441, 'k', 'P', 't', 'r', 3027, 's', 3809, 'u', 'S', 'h', 5087, 'z', 'a', 'b', '3333', '6041', '2765', 'q', '9485', '7697', 'E', '509', 'Q', '1573', '4879', '1197', '4515', 'k', 'c', 'z', 'V', 'l', 521, 9401, 3845, 6245, 3437, 'w', 'u'], ['u', 4399, 'R', 'v', 'x', 1061, 7505, 'r', 8411, 'o', 9285, 477, 3823, 'O', 'B', 2731, 5879, 'a', 'b', '3333', '6041', '2765', 'q', '9485', '7697', 'E', '509', 'Q', '1573', '4879', '1197', '4515', 'k', 'c', 'G', 9613, 8995, 3881, 'i', 'G', 't', 2473, 1297, 7481, 'v', 'a', 7607, 1147, 3263, 'p']
Example Output: a, b, 3333, 6041, 2765, q, 9485, 7697, E, 509, Q, 1573, 4879, 1197, 4515, k, c

Example Input: [3129, 657, 'z', 8705, 'v', 5349, 9401, 9047, 't', 'Q', 't', 'T', 493, '9601', '167', '169', '4037', 'a', '4733', 'U', 't', '6595', 's', 'N', '5045', 'K', 'j', 'o', 'H', '9291', 'E', 'M', '4089', '8773', '7391', '1095', '1783', 'J', 'K', 'A', 'k', 8659, 1707, 2035, 'o', 4657, 5873, 'D', 7253, 'n', 'g'], [6627, 5351, 3163, 'H', 'r', 7427, 'q', 5221, 'Q', 9649, 'm', 2875, 't', 9039, 'H', 'C', 'e', 'K', 6207, 'k', '9601', '167', '169', '4037', 'a', '4733', 'U', 't', '6595', 's', 'N', '5045', 'K', 'j', 'o', 'H', '9291', 'E', 'M', '4089', '8773', '7391', '1095', '1783', 'a', 7279, 'V', 2905, 'l', 'L', 2881, 921, 'X', 7031, 'f', 'Z', 'G', 887, 1275, 4797, 771, 9171, 7555, 'Y']
Example Output:
9601, 167, 169, 4037, a, 4733, U, t, 6595, s, N, 5045, K, j, o, H, 9291, E, M, 4089, 8773, 7391, 1095, 1783