In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['p', 8519, 9665, 'Y', 'p', 'C', 'E', 'D', '7115', 'Q', '4159', 'w', 'S', '465', '8535', 'Y', '7535', '9131', '689', 'T', 'U', '1597', 'd', 'T', 'f', 'A', '695', 't', 'L', 4227, 'S', 2445, 'h', 8699, 'S', 981, 'p'], [6575, 3509, 953, 9559, 'Z', 'Q', 3919, 3029, 299, 'L', 3431, 'U', 1973, 581, 'b', 'C', 'C', 'E', 'D', '7115', 'Q', '4159', 'w', 'S', '465', '8535', 'Y', '7535', '9131', '689', 'T', 'U', '1597', 'd', 'T', 'f', 'A', '695', 't', 'W', 4741, 9907, 'A', 8945, 4573, 4645, 'z', 5127, 'B', 'Z', 'Y', 2919, 2171, 'R', 4241, 9763]