In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2857, 'I', 'W', 'q', 'v', '6501', '103', 'V', '417', 'S', 'w', 6289, 3749], [3725, 'l', 'v', '6501', '103', 'V', '417', 'w', 8959]