In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['X', 7005, 4977, 'Q', 'x', 8231, 6325, 's', 8339, 'Z', 'M', 1351, 'R', 1875, 7671, 'I', '8867', 'z', 'C', 'f', '3363', 'c', '5187', '6437', '6529', 'Y', 'F', '7339', '3263', '9627', '5231', '5121', 'z', 'X', 'B', 8161, 6773, 'I', 'J', 'M'], ['U', 8649, 'G', 'O', 5863, 'L', 'l', 8101, 'a', 'o', 'I', '8867', 'z', 'C', 'f', '3363', 'c', '5187', '6437', '6529', 'Y', 'F', '7339', '3263', '9627', '5231', '5121', 'z', 'T', 1665, 'o', 6949, 9257, 'S', 'V', 'C', 2961, 'l']