In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[785, 8107, 'k', 3239, 8831, 3287, 'K', '5677', 'B', 'x', 'z', '873', '3051', 't', 'f', 6313, 229, 'B', 'B', 1311, 5275], [2309, 2565, 'Q', '5677', 'B', 'x', 'z', '873', '3051', 't', 'H', 'c']