In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8717, 'f', 'K', 'v', 'U', 569, 1417, 1669, 'a', 625, 9525, 8155, 5357, 6269, 7783, 115, 6223, 7821, 6923, 10025, 'P', 6243, 'P', 'K', 'g', '8109', 'h', '2167', 'z', '4151', 'z', '6167', '4805', '5161', '1093', 'T', '8225', 'Y', 'h', '8701', 'V', '9059', 'P', 'l', '6619', 'e', 'b', 'K', '7949', 'X', 'Z', 'e', 'v', 'U', 'z', 271, 'e', 9839, 'Z', 4481], [1867, 1823, 6713, 3961, 'j', 'R', 5655, 1997, 1659, 5223, 'o', 2701, 'K', 8431, 729, 1473, 2555, 'N', 7205, 'H', 'L', 'L', 2235, 5171, 'o', 'Z', 'K', 'g', '8109', 'h', '2167', 'z', '4151', 'z', '6167', '4805', '5161', '1093', 'T', '8225', 'Y', 'h', '8701', 'V', '9059', 'P', 'l', '6619', 'e', 'b', 'K', '7949', 'X', 'Z', 'e', 'f', 6677, 491, 6681, 2521, 3733, 'x', 251, 2719, 'Y']