In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2657, 8297, 'q', 'P', 2945, 'p', 'i', '5169', '7775', '7623', '9045', 'j', 'b', 'w', 7397, 'K', 'a'], [8555, 6159, 'y', 3187, 945, 'p', 'i', '5169', '7775', '7623', '9045', 'j', 'F', 'm', 9719, 1677, 9013]