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

Ex Input:
[7409, 'l', 'h', '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'J', 'M', 'Q', 'R', 5567, 'p', 'L'], [2329, 5573, 'N', 't', 3213, 9107, 9337, 79, 1607, 'J', 'y', 'g', 's', 'h', 4251, 'L', 3147, '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'x', 'Q']

Ex Output:
6739, 5187, K, D, 7539, 5609, x, p, S, j, j, 3077, 6081, d, 61, 2871, s


Ex Input:
[3119, 'a', 3299, 'R', 4993, 'Z', 3945, 2251, 'L', 'b', 'p', 9607, 'm', 'T', 'd', 'D', 3061, 7609, 'u', 'b', 'M', 'y', '573', '8299', '6699', '9529', '4279', '3041', '179', '9953', '9107', 'A', 'M', '4513', '4915', 'G', 'e', '5871', '8555', '6957', '1457', '9445', 'g', 'z', 'z', 'q', 'T', 'E', 'H', 6809, 1237, 6021, 'D', 'F', 8119, 1163, 'Q', 'D', 3223, 'D', 3125], ['q', 'y', 'T', 4457, 'I', 'v', 'T', 'o', 2925, 9225, 'h', 9875, 5479, 1831, 'z', 6931, 449, 7921, 7791, 2891, 4657, 'y', '573', '8299', '6699', '9529', '4279', '3041', '179', '9953', '9107', 'A', 'M', '4513', '4915', 'G', 'e', '5871', '8555', '6957', '1457', '9445', 'g', 'z', 'z', 'q', 'O', 'k', 2265, 5061, 'z', 'y', 'Q', 'J', 2665, 5157, 4675, 'D', 6509, 'Q', 177, 'w']

Ex Output:
y, 573, 8299, 6699, 9529, 4279, 3041, 179, 9953, 9107, A, M, 4513, 4915, G, e, 5871, 8555, 6957, 1457, 9445, g, z, z, q


Ex Input:
['X', 'T', 9357, 'U', 9239, 4857, 'd', 'f', 2845, 2645, 1167, 9451, 8263, '5787', '1435', 'Z', '6457', 'T', 'W', 'U', '523', '8367', 'B', '8045', 'K', '4433', '5743', 'u', 'R', 'V', 'N', 'G', 'q', 'd', 'r', 'g', 'o', 8119, 'c', 's', 7325, 'z', 10023, 'm', 'G', 9817, 'G'], ['K', 'r', 4447, 'x', 'i', 2399, 'b', 'y', 7449, 'V', 'K', 'U', 6935, 9263, 8223, 8213, '5787', '1435', 'Z', '6457', 'T', 'W', 'U', '523', '8367', 'B', '8045', 'K', '4433', '5743', 'u', 'R', 'V', 'N', 'G', 'q', 'd', 'r', 'g', 'O', 'c', 6533, 8995, 'e']

Ex Output:

5787, 1435, Z, 6457, T, W, U, 523, 8367, B, 8045, K, 4433, 5743, u, R, V, N, G, q, d, r, g