In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[6229, 'b', 2871, 'P', 1547, 'f', '3207', '6941', '5471', 'j', 'k', '8071', 'u', 4673, 8239, 'O', 8579], ['I', 3723, 'w', 'R', 2935, 'z', 'f', '3207', '6941', '5471', 'j', 'k', '8071', 'A', 7785, 8171]