In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[1889, 857, 3079, 3945, 'L', 'e', '8097', '5963', 'Z', 1779, 'f'], [35, 2479, 'L', 'e', '8097', '5963', 'M', 1763, 5785]