In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['d', 4977, '8305', '9001', 'e', 'D', 'W', 'O', 701], ['O', 2815, 8243, 7103, '8305', '9001', 'e', 'D', 'n', 4529, 'p']