In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[3175, 'U', 575, 2431, 'L', 'K', 'k', 'T', 'm', '437', 'w', 6887], ['a', 'o', 'K', 'k', 'T', 'm', '437', 'Q', 5829, 8527]