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: ['r', 7309, 'a', 5957, 2551, 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'a', 'M', 'h', 4163, 'n'], ['q', 4457, 'D', 2623, 't', 'F', 'c', '4533', 'L', '9417', 'm', '7989', '4409', 'u', 2719, 'G']
Example Output: c, 4533, L, 9417, m, 7989, 4409

Example Input: ['M', 'l', 'C', '2049', 'J', 'O', '9309', 'f', 'x', 'X', '1823', '9351', 'W', '6579', 'K', 2087], [2439, 2777, 'w', 2015, '2049', 'J', 'O', '9309', 'f', 'x', 'X', '1823', '9351', 'W', '6579', 'W', 2455, 'X', 4455, 953, 9803, 5777, 'p', 'C', 9673]
Example Output:
2049, J, O, 9309, f, x, X, 1823, 9351, W, 6579