In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8347, 'o', 3731, 9019, 'Q', 'H', '1739', 'f', 'd', '6191', 'r', '5599', 'Y', 'z', '7915', 'l', 'k', '2297', 'u', 'Z', 'U', 'B'], [9875, 243, 2267, 5729, 2255, 'F', 'G', 5053, 2621, 6643, 'l', 'H', '1739', 'f', 'd', '6191', 'r', '5599', 'Y', 'z', '7915', 'l', 'k', '2297', 'M', 8323, 7887, 2991, 10021, 367, 'e', 1205, 'S']