In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['e', 2047, 'g', 5247, 'F', '8671', 'A', 'E', '2409', 'w', '6423', 'E', 'd', '4531', 'O', '4065', '193', 'X', 5527, 'M', 'x', 's', 3277, 'q', 9945, 'q', 3063, 'B', 'k'], [5331, 1171, 6263, 'S', 7777, 2319, 5603, 285, 6973, 'l', 3267, 'F', '8671', 'A', 'E', '2409', 'w', '6423', 'E', 'd', '4531', 'O', '4065', '193', 'p', 5263, 'I', 'q', 9557, 'S', 'V', 5927, 'W', 2185, 'L', 8105, 301]