In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['h', 4915, '1685', '8731', 'b', 'H', 'T', 'R', 9787], [3379, 'u', '1685', '8731', 'b', 'H', 'T', 'b', 'b', 6567, 3587, 'f']