In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[5237, 9821, 4677, 551, 9875, 'u', '9', 'M', 'A', '747', 'Z', '2579', '2005', '1215', 'Q', 'S', 'Z', 'j', 'T'], [3505, 'g', 'Z', 'b', 2167, 'u', '9', 'M', 'A', '747', 'Z', '2579', '2005', '1215', 'Q', 'S', 'v', 'r']