In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['A', 'B', 'w', 'd', '5369', 'A', '3471', '451', '4415', '9825', 'A', 'A', 9561, 'p'], [2739, 3895, 'L', 'b', 'L', '5369', 'A', '3471', '451', '4415', '9825', 'e', 1521, 8243, 5599]