In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['B', 'f', 'Y', 'r', 4391, 'B', '6995', '7077', 'p', '3191', 'M', 1379, 5473], [3689, 'g', 5189, 'w', 4837, 'B', '6995', '7077', 'p', '3191', 'B', 9145]