In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['b', 4165, 5987, 'N', 'K', 'b', 'p', '6363', 'B', 'Y', 6691], ['g', 9849, 6793, 'K', 'b', 'p', '6363', 'f', 'R', 3977, 'f']