In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['e', 3359, 'L', '8595', 'O', '2271', '5367', 'z', 7837], [2395, 'T', 8123, 4447, 'L', '8595', 'O', '2271', '5367', 'P', 10003, 709, 'X']