In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3337, 4603, 7597, 'd', 'f', 9091, 'A', 8105, '3561', 'G', '2253', 'h', 'P', '5497', '3077', 'E', 'p', 6967, 'N'], ['L', 'a', 5587, 3643, '3561', 'G', '2253', 'h', 'P', '5497', '3077', 'E', 'Z', 'X', 4843]