In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6371, 'd', 'D', '9391', '5703', 'x', 'a', 'p', 'g', '8711', 'j', '5153', '6539', '4737', '1259', '5623', 'S', 7163, 4975, 'U'], [1191, 'O', 6155, 7919, 8791, 'k', 'D', '9391', '5703', 'x', 'a', 'p', 'g', '8711', 'j', '5153', '6539', '4737', '1259', '5623', 'a', 1297, 'r', 4767, 7003, 'U', 649, 'o', 5429, 2581, 1957, 3921, 'C']