In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[8777, 4389, 'B', 4635, 'y', 5053, 7877, 'F', 'E', 'j', 'D', 'b', 'y', '1277', '2871', 'n', 'V', '6513', '579', 'J', '6861', 'R', 'U', 1841, 9659, 'j', 'P', 'P', 'M', 9053, 9475, 6633], [7229, 's', 'M', 2597, 'n', 'v', 3999, 'b', 'y', '1277', '2871', 'n', 'V', '6513', '579', 'J', '6861', 'R', 'r', 'V', 6469, 5185, 7543, 3655, 'T']