In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5849, 'k', 7939, 'R', 'i', 'U', 8717, 'e', 6371, 1527, 5933, 'Z', 5425, 6205, 6455, 5817, 3075, 6439, 'r', 'H', 8429, 6895, 5147, 'K', 'x', 'p', 'j', 'p', '1757', '253', '2085', '2487', '4881', '2007', '4155', 't', 'Q', 'B', 'o', 'p', 'b', '5887', 'f', '6595', 'X', '2617', 'M', 'I', 'm', 'K', 'A', 'P', 8437, 7649, 5991, 5393, 'L', 'M', 'k', 'W', 'Z', 's', 6637, 1899, 'n', 'w', 8323, 3395, 'N', 8559, 3177, 9885, 'V', 3163], ['k', 'r', 517, 3767, 7563, 6801, 'Y', 3851, 'P', 6045, 5783, 21, 'x', 'p', 'j', 'p', '1757', '253', '2085', '2487', '4881', '2007', '4155', 't', 'Q', 'B', 'o', 'p', 'b', '5887', 'f', '6595', 'X', '2617', 'M', 'I', 'm', 'K', 'Q', 3951, 'a', 'c', 'd', 37, 6191, 'f', 1887, 'd', 'U', 415, 759, 6329, 6581, 4787, 'P', 'Q', 1099, 1097, 3237, 2495, 5645, 5445, 'R', 6199]