In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['Q', 'K', 'A', 'f', 'b', '5021', '5107', '2303', 'b', 8509, 'B', 'v'], ['T', 'T', 5749, 'X', 'b', '5021', '5107', '2303', 'Q', 'v']