In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[9907, 3827, 799, 'i', 1083, 'f', '2717', '6473', 'h', 'x', 'Q', 'm', 'b', 6827], [2981, 8167, 8999, 7979, '2717', '6473', 'h', 'x', 'Q', 'm', 'M', 'h', 'o', 1107, 'm', 6147]