In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7165, 'I', 'M', 't', 'k', 'B', '9265', 'i', '2555', 'Z', 'Y', 'p', 'e', 'x', 'S', 4559, 'D', 9561, 'q'], [8785, 1059, 'k', 'B', '9265', 'i', '2555', 'Z', 'Y', 'p', 'J', 1179, 'L', 9563, 't', 'x']