In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['K', 'e', 9865, 'D', '5065', 'g', 'h', '341', 'N', '5409', 'D', 'J', 'a', 3049, 'H'], ['T', 'e', 2817, 'g', 6559, 'D', '5065', 'g', 'h', '341', 'N', '5409', 'D', 'J', 'v', 'O', 8337, 8231, 2051, 9647, 7955]