In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8407, 'I', 'X', 'f', 'i', 5139, 'K', 'B', '2409', 'C', '3087', 'c', '6019', '4401', 'y', 'm', '8181', 'N', '6819', 'b', '2635', 'u', 2359, 'o', 'F', 5963, 'o', 'G', 'D'], ['d', 1711, 2041, 'a', 'B', '2409', 'C', '3087', 'c', '6019', '4401', 'y', 'm', '8181', 'N', '6819', 'b', '2635', 'n', 1175, 'N', 7593, 'q', 'c']