In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['o', 'D', 909, 'P', 'F', 'P', '9707', 'K', 'K'], ['Z', 2837, 9507, 'P', 'F', 'P', '9707', 'a', 'o', 1459]