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

Example Input: ['q', 6247, 7691, 'M', 'i', 3857, 'J', '249', 'j', '3315', 'Y', 'q', 'K', 'B', 'h', 'M', 'i', '3947', '8559', '1833', 'q', 'x', '1469', '7579', '421', 'F', 'y', 'c', '9043', 'r', 'N', 'O', 'N', 'Z', 'a', 8713, 'a', 2717, 'y', 'l', 't', 1815, 9507, 1713, 'N'], ['Z', 7463, 6215, 'r', 43, 'h', 3841, 9317, 'J', 'x', 6735, 'b', '249', 'j', '3315', 'Y', 'q', 'K', 'B', 'h', 'M', 'i', '3947', '8559', '1833', 'q', 'x', '1469', '7579', '421', 'F', 'y', 'c', '9043', 'r', 'N', 'O', 'N', 'Z', 'Q', 'c', 'B', 9989, 'd', 875, 1185, 7121, 5559, 'k', 2289]
Example Output: 249, j, 3315, Y, q, K, B, h, M, i, 3947, 8559, 1833, q, x, 1469, 7579, 421, F, y, c, 9043, r, N, O, N, Z

Example Input: ['M', 'u', 'N', 'y', 295, 3475, 9835, 'H', 4717, 1403, 'Y', 9997, 8009, 'g', 'p', '5225', '6819', '2091', '2855', '3637', '2009', 'v', 'c', 'r', '8173', 'H', 'o', 'N', 'F', '1483', 'w', 3597, 1163, 5869], ['v', 9877, 'x', 5367, 4285, 'B', 4389, 3125, 'J', 'u', 2261, 8063, 'W', 'l', 'I', 'y', 9779, 'g', 'p', '5225', '6819', '2091', '2855', '3637', '2009', 'v', 'c', 'r', '8173', 'H', 'o', 'N', 'F', '1483', 'P', 5999, 'u', 2261, 'd', 'n', 'N', 9087, 'P']
Example Output: g, p, 5225, 6819, 2091, 2855, 3637, 2009, v, c, r, 8173, H, o, N, F, 1483

Example Input: ['V', 251, 8091, 'v', 'T', 4971, 7383, 3865, 'e', 'h', 'z', 1451, 3759, '4515', '7037', '1439', '4803', 'p', '4425', '8533', '7863', '7963', 'P', 'c', '3577', 'T', '4399', '499', 'b', 'M', 2907, 3325, 593, 9121, 2035, 7971, 'j', 'N'], ['R', 'Y', 8507, 4707, 'j', 5721, 9195, '4515', '7037', '1439', '4803', 'p', '4425', '8533', '7863', '7963', 'P', 'c', '3577', 'T', '4399', '499', 'b', 'J', 'y', 989, 'H', 4909, 3693, 3623, 'o', 911, 'g', 9819, 'R', 'v', 'U']
Example Output:
4515, 7037, 1439, 4803, p, 4425, 8533, 7863, 7963, P, c, 3577, T, 4399, 499, b