In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3861, 'y', 4593, 'M', 'k', 'W', 'M', '8473', 'J', 'O', 'R', 'x', 'W', '6543', '3375', 's', 'D', 'c', 'n', 'J', 'L', 'r', 'h', 'a', 'T', 'E', 485, 2571, 'U', 8545, 'h', 'e', 9161], [5951, 2849, '8473', 'J', 'O', 'R', 'x', 'W', '6543', '3375', 's', 'D', 'c', 'n', 'J', 'L', 'q', 4745]