In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9945, 'F', 6843, 'b', 2021, 5141, 'I', 4629, '6185', 'p', '155', '5111', '4489', 'Y', 'T', 'D', 'h', '4807', '3359', '3743', 'R', 'E', 'h', 'V', 'X', '7757', '6535', 's', 'D', 6543, 'E', 'g', 8105, 'X', 835], [6171, 'T', 6669, 9845, 'T', 'H', 9635, 'n', 9589, 'P', 'V', 'p', '6185', 'p', '155', '5111', '4489', 'Y', 'T', 'D', 'h', '4807', '3359', '3743', 'R', 'E', 'h', 'V', 'X', '7757', '6535', 'q', 'x', 'i', 'B', 7727, 3579]