In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 'Y', 'P', 5993, 'a', 'n', '7993', 'C', 'Y', 'j', 1085], [5573, 8627, 8509, 'e', 'a', 'n', '7993', 'C', 'q', 'E']