In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['U', 5387, 'd', '987', 'Q', '4797', 'p', '3039', '2169', 'p', 'v', 'b', 'B', 4117, 9275, 373], ['E', 'Z', 'Q', 5597, '987', 'Q', '4797', 'p', '3039', '2169', 'p', 'N', 8473, 3047]