In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[951, 6109, '6235', '5957', '2035', '8363', 'Q', 4081, 't', 'z'], ['f', 'N', 5717, 'k', '6235', '5957', '2035', '8363', 'E', 2347]