In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3431, 35, 'B', 'j', 't', 9925, 'n', 'v', 5701, 'D', 'X', 'K', 2019, 'W', 'o', 'p', 'Q', '3939', '3847', 'd', 'A', '1649', '8101', '8507', 'N', '8523', 'U', '6801', '4143', 'z', 2371, 'H', 3397, 3087, 'Q', 'k', 'o', 2891, 'y'], [1117, 'v', 'q', 'j', 'l', 'o', 'p', 'Q', '3939', '3847', 'd', 'A', '1649', '8101', '8507', 'N', '8523', 'U', '6801', '4143', 'k', 'p', 'g', 8695, 'l', 7047, 1471, 9235, 5211, 'p', 'z', 'x']