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

Ex Input:
[9577, 'v', 2595, 7901, 5205, 'Z', 2647, 'm', 't', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'i', 9823, 5731, 'd', 'u', 1461, 'Z', 9415, 541, 'T', 'A', 'G', 7275], [9731, 4061, 'V', 'k', 9589, 'v', 'k', 7917, 'x', 'B', 'z', 31, 'K', 'h', '6209', '6325', 'B', '8879', '1137', '7837', '1819', 'S', '2249', 'i', 'L', '3729', 'n', 'J', 'g', 8859, 195, 'l']

Ex Output:
h, 6209, 6325, B, 8879, 1137, 7837, 1819, S, 2249, i, L, 3729


Ex Input:
[6423, 'w', 'K', 'm', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'S', 'X', 'y', 2479, 'p', 'B', 7193, 8327, 'X', 8547, 2261, 'X', 477, 535, 'w', 'f', 2923], [5389, 6751, 'F', 'l', 9579, 'A', 'S', 'X', '8857', 'r', '9809', 'a', 'g', '7297', 'H', 'Q', 'W', 'I', 'm', '3277', 'm', 'W', 'L', 'H', 'O', 't', 8821, 'H', 3919, 7667, 'x', 'v', 4035, 3179, 9235, 5679, 'c', 'P']

Ex Output:
S, X, 8857, r, 9809, a, g, 7297, H, Q, W, I, m, 3277, m, W, L, H


Ex Input:
['r', 5197, 119, 7019, 1731, 'z', 5341, 9727, 'D', 4283, 'n', 4349, 'M', '4177', '7025', '9115', 'W', '8281', 'Z', 'R', 'm', 'm', '5907', '6231', 'w', '3823', '8069', '2767', '1653', '1297', 'f', 'f', 423, 4819], [6421, 5043, 'B', 4723, 'M', '4177', '7025', '9115', 'W', '8281', 'Z', 'R', 'm', 'm', '5907', '6231', 'w', '3823', '8069', '2767', '1653', '1297', 'M', 'F', 2641, 'd', 'T', 1303]

Ex Output:

M, 4177, 7025, 9115, W, 8281, Z, R, m, m, 5907, 6231, w, 3823, 8069, 2767, 1653, 1297