In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[465, 'Q', 5881, 'c', 'a', '9195', '4445', '7031', 'R', 'H', 'K'], [2917, 'Y', 9289, 7307, 1567, 'a', '9195', '4445', '7031', 'R', 'f', 9585, 1537, 'z']