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

Ex Input:
[8711, 'f', 8715, 7649, 4967, '5867', 'i', '6567', 'R', '6087', '2945', 'J', 'j', 9099, 6331], ['a', 'T', 'n', 4869, '5867', 'i', '6567', 'R', '6087', '2945', 'M', 3125, 'D', 3835]

Ex Output:
5867, i, 6567, R, 6087, 2945


Ex Input:
[6161, 9929, 'e', 2649, '8399', 'W', 'G', 'l', '3443', 'W', 'F', 'J', 'g', 'r', 'R', '41', 'c', 'c', '87', 'N', '7757', '2641', 'Z', 'v', 'g', '1365', 'R', '6435', 'J', 'Y', 3203, 5389], ['x', 'p', 7335, 4343, 'R', 6755, 'Q', 8319, 'N', 4111, 'a', 'M', 'n', 5739, 'j', 3435, 'J', 6645, 'O', 4833, '8399', 'W', 'G', 'l', '3443', 'W', 'F', 'J', 'g', 'r', 'R', '41', 'c', 'c', '87', 'N', '7757', '2641', 'Z', 'v', 'g', '1365', 'R', '6435', 'P', 'q', 549]

Ex Output:
8399, W, G, l, 3443, W, F, J, g, r, R, 41, c, c, 87, N, 7757, 2641, Z, v, g, 1365, R, 6435


Ex Input:
['x', 3725, 297, 'K', '2079', '9081', 'V', '1625', 'O', '1019', 'B', 'n', 'V', 'K', '9117', '5051', '5717', 'X', 'Y', '2579', 'h', 'A', 'q', 'q', 257, 1065, 'R', 'E'], ['X', 'a', 'j', 6207, 6577, 'P', 9019, 'A', 'K', '2079', '9081', 'V', '1625', 'O', '1019', 'B', 'n', 'V', 'K', '9117', '5051', '5717', 'X', 'Y', '2579', 'h', 'P', 8903, 'K', 2411, 5943, 2257, 'd', 'y', 4769, 'd', 'U', 2165]

Ex Output:

K, 2079, 9081, V, 1625, O, 1019, B, n, V, K, 9117, 5051, 5717, X, Y, 2579, h