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

Example Input: [5599, 'o', 'p', 'T', 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'D', 'e', 'O', 'O', 3319], ['J', 2811, 7263, 'C', 4889, 477, 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'F', 3717, 'X', 1407, 2097, 'J', 'N', 'W']
Example Output: o, p, B, M, 283, R, a, 9671, 8125

Example Input: [7395, 'b', 'k', 4085, 2295, 'W', 'e', 'd', '1583', '9993', 'x', '2291', '1847', 'R', 'a', 'n', 'r', 'G', '7947', '6081', 'H', 'K', 't', '6537', 'q', 'V', '3423', '9531', '4907', '123', '4757', 'J', 'S', 'Q', 'D', 'f', 4941, 6655, 8343, 2509, 6487, 'b', 'E', 'f', 'n', 'v', 'j', 7091, 9231, 9129, 7785, 9709, 2645, 3179, 'U', 631, 7891], [7807, 8461, 'n', 'C', 9827, 1359, 'O', 3781, 'k', 'n', 'F', 'l', 'x', 'O', 4867, 'd', '1583', '9993', 'x', '2291', '1847', 'R', 'a', 'n', 'r', 'G', '7947', '6081', 'H', 'K', 't', '6537', 'q', 'V', '3423', '9531', '4907', '123', '4757', 'J', 'S', 'Q', 'D', 'H', 'B', 'f', 'X', 2529, 2153, 'u', 'z', 747, 5899, 1307, 'l', 'Q', 'x', 3787, 'b', 1187, 'h', 9519, 3483, 'q']
Example Output: d, 1583, 9993, x, 2291, 1847, R, a, n, r, G, 7947, 6081, H, K, t, 6537, q, V, 3423, 9531, 4907, 123, 4757, J, S, Q, D

Example Input: [8073, 6017, 'i', '2191', '1577', '4569', 'N', 2977, 'i'], ['T', 'B', '2191', '1577', '4569', 'f', 2451, 'V']
Example Output:
2191, 1577, 4569