In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[95, 6287, 5495, '2161', 'h', '389', '7863', 'Y', '2267', 'h', '1277', '5203', 'g', 'L', 'o', 3137, 'q'], ['W', 'e', '2161', 'h', '389', '7863', 'Y', '2267', 'h', '1277', '5203', 'q', 6501, 2851, 'n']