In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[701, 'h', 3535, 'k', 'k', '141', 'E', 'p', 'Q', 'A'], ['h', 'E', 'A', 'b', 'k', '141', 'E', 'p', 'x', 'r', 3451]