In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5599, 'o', 'p', 'T', 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'D', 'e', 'O', 'O', 3319], ['J', 2811, 7263, 'C', 4889, 477, 'o', 'p', 'B', 'M', '283', 'R', 'a', '9671', '8125', 'F', 3717, 'X', 1407, 2097, 'J', 'N', 'W']