In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['g', 'L', 8501, 'D', '1349', 'a', '4685', '4827', '1325', '8973', 'x', 'a', '229', 'a', '4247', '5011', '1991', '7449', 'U', 'N', '6051', 'f', 'c', 'm', 'T'], ['s', 'A', 811, 'E', 6273, '1349', 'a', '4685', '4827', '1325', '8973', 'x', 'a', '229', 'a', '4247', '5011', '1991', '7449', 'U', 'N', '6051', 'f', 'c', 'r', 'p', 'S', 2871, 'H', 'q', 6515, 'N', 'b']