In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[2351, 9017, 'R', 'M', 'o', 9643, 6559, 'g', 'g', 6415, 1995, '847', '6969', '5455', '8177', '1957', 'd', 'F', '8531', '3307', 'j', 'H', '6793', 'd', 'Q', 8369, 'k', 231, 5881, 'L', 7663, 'E', 'K', 'S'], ['d', 'b', 265, 'R', '847', '6969', '5455', '8177', '1957', 'd', 'F', '8531', '3307', 'j', 'H', '6793', 'k', 9773, 'w', 5517, 5161]