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

Example Input: [4839, 2307, '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'J', 'h', 'k', 'P'], [2615, 't', 5171, 'V', 'q', '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'p', 5261, 3251]
Example Output: 5609, V, s, 7059, N, 3761, i, 161, 1987, N

Example Input: ['J', 6791, 'x', 'f', 'n', '5565', '4103', 'q', 'n', 'h', '625', '2981', '3243', 'q', '2705', '5505', 's', '4423', 'j', '9819', '3841', 'Z', 'i', 'n', 'R', 9199, 455, 'i'], [4051, 8463, 'i', 6667, 'N', 'k', 'X', 2629, 'I', 'O', 5057, 1059, 4265, 'B', 3819, 'c', 9941, 'R', 'a', 5545, 'x', 'f', 'n', '5565', '4103', 'q', 'n', 'h', '625', '2981', '3243', 'q', '2705', '5505', 's', '4423', 'j', '9819', '3841', 'Z', 'a', 9953, 6229, 'F', 2985]
Example Output: x, f, n, 5565, 4103, q, n, h, 625, 2981, 3243, q, 2705, 5505, s, 4423, j, 9819, 3841, Z

Example Input: ['a', 'd', 'V', 857, 's', 'S', 7867, 4263, 5397, 'O', 6337, 'K', 'q', '8399', 'V', 'U', '3883', 'I', 'z', '7907', '1577', 'S', 'u', '2361', '3307', 'H', 'w', 8329, 'e', 8261, 3141, 6739, 371, 1495, 379], [7087, 8057, 'K', 'q', '8399', 'V', 'U', '3883', 'I', 'z', '7907', '1577', 'S', 'u', '2361', '3307', 'H', 'Q', 'Z', 'q', 's', 'J', 'j', 3105, 'D', 'W', 4027, 'S']
Example Output:
K, q, 8399, V, U, 3883, I, z, 7907, 1577, S, u, 2361, 3307, H