In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 3097, 'W', 'Q', '2775', '943', 'f', 'A', 1543], ['I', 'Z', 'Q', '2775', '943', 'K', 8505, 'i']