In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 3991, '3165', '2277', '8401', '6601', '5627', 'E', 'c', 'I', 'i', '2999', '3943', 'K', 4565, 9429], [3087, 'n', 8853, 1011, 5269, 6025, 9755, 6699, 'S', 7501, '3165', '2277', '8401', '6601', '5627', 'E', 'c', 'I', 'i', '2999', '3943', 'f', 7189, 'M', 4599, 'i', 'L', 'a', 'k']