In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['d', 3243, 1319, 'J', '5883', '9771', 'r', 'C', 'm', 1835], [4061, 381, 'N', 'J', '5883', '9771', 'r', 'F', 'S', 4317, 6059]