In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5959, 6901, 9905, 8233, 'o', 4525, 'R', '5659', 'R', 'M', '7671', '7511', '6739', '6577', 'b', 'R', 'v', 'k', 1697, 4867, 1783, 'g', 9857, 'X', 8783, 769, 9621], [8639, 127, 4035, 749, 'j', 509, 'w', 'R', '5659', 'R', 'M', '7671', '7511', '6739', '6577', 'b', 'R', 'v', 'q', 'y', 'r', 'L', 'W', 1557]